The Rosenbergs were executed for espionage. The formal charge was what they did...spy. It was also treason.
Others have been convicted of treason (Tokyo Rose, iirc) but were not executed due to pardons or non-capital sentences.
Yes, I know treason carries the death sentence.
Rx said sedition does too, and I asked for a reference for that.