A five-year prison sentence for a former journalist with the online publication The Intercept was too severe for the cyberstalking charge to which he pleaded guilty, the U.S. Court of Appeals for the Second Circuit ruled Wednesday.

The Second Circuit vacated the sentence and remanded the matter to the trial court for resentencing.