Adam Johnson scored in the 90th minute to give Sunderland their fourth successive win over Newcastle in the Tyne-Wear derby.
The winger placed his shot past Jak Alnwick following an excellent counter-attack by the Black Cats.
They also went close through Steven Fletcher, whose shot hit the post, while Connor Wickham wasted chances.
Newcastle striker Ayoze Perez was twice denied by Costel Pantilimon, who also saved from Moussa Sissoko.
There was barely time for the home side to test the Romanian keeper again after the goal, as Sunderland held on for their third successive victory on Tyneside and only their third league win of the season.
The result lifts them to 14th in the table, and further cements Gus Poyet’s hero status among the club’s fans after he once again commandeered his players to a memorable victory at their rivals.
Newcastle looked susceptible on the counter throughout the match and were caught again. Johnson, who had earlier missed with a side-foot effort from eight yards, made no mistake when he smashed home Will Buckley’s lay-off.