Alan Shearer's historic 200th goal for Newcastle spared Graeme Souness a major FA Cup embarrassment. The 35-year-old fired home 10 minutes from time to equal the legendary Jackie Milburn's club record total.
It was Shearer's 21st FA Cup goal for the club and it broke Mansfield's hearts.
Shearer once beat Stags goalkeeper Kevin Pressman five times in a single game during his days at Sheffield Wednesday, but it was a measure of the League Two side's performance that he converted his only real chance.
Had he not pounced late in the game, a goalless draw could have left the under-pressure Souness facing a major revolt.
Peter Shirtliff's Mansfield will feel aggrieved not to have secured a replay at least, and had they not had a hero to acclaim on the final whistle, the bulk of a crowd of 41,459 would have left disgruntled.
However lacklustre their performance, Souness' men remain in the hunt for the last trophy they can win this season.
Newcastle's injury problems have been well documented, and Souness went into the game without nine first-team squad members while Lee Bowyer was suspended and Amady Faye away on international duty with Senegal.
However, he was still able to field a side which cost around £45million to put together and which included seven full internationals.
And while he promised to treat Mansfield with the utmost respect, he fully expected the Magpies to ease through to the fourth round.
But and as his millionaires walked off the pitch at half-time, Souness, who has spent the last week defending himself against intense criticism, had boos ringing in his ears once again.
He insists he understands the crowd's frustration, but the reasons for the latest jeers were plain to see as a misfiring outfit proved embarrassingly incapable of imposing themselves on a team lying 20th in League Two.
Newcastle then came perilously close to falling behind within a minute of the restart. Front two Richie Barker and Russell had given Titus Bramble and Jean-Alain Boumsong plenty to think about before the break.
They combined to put the pair under pressure again immediately after the restart to hand Uhlenbeek another chance to cross. His ball was dummied in the middle to leave Rundle bearing down on goal, but his firm first-time shot was saved by Given.
As the game wore on, Newcastle were finally starting to threaten on a more sustained basis. Gareth Jelleyman got in a vital block to deny Shearer on 70 minutes after Clark and Solano had played a neat one-two, and Luque sent a dipping free-kick just over two minutes later.
The post came to Pressman's rescue 16 minutes from time when Chopra deflected N'Zogbia's cross towards goal.
But just as the knives were being sharpened, Shearer chose the perfect moment to draw level with Milburn. Luque ran on to Solano's pass before backheeling the ball for his skipper to blast a low shot past Pressman and into the net as St James' Park erupted in a mixture of joy and relief.