Allan Saint-Maximin scored a fine extra-time winner to seal Newcastle's place in the fifth round of the FA Cup after Oxford had fought back from two goals down.
After a drab goalless draw at St James' Park ten days ago, the replay produced a night of high drama and some quality goals.
Steve Bruce's men appeared to be cruising to the last 16 of the competition thanks to first-half goals by Sean Longstaff and Joelinton, who was then almost immediately forced off with a hip injury, but two stunning strikes from the League One outfit in the dying stages turned the game on its head.
A beautiful curling free-kick from Liam Kelly gave Oxford a fighting chance and deep into added time Nathan Holland's sumptuous volley sent a fascinating game into extra-time.
There were chances at both ends in a topsy-turvy final half-hour, but the game was finally decided in the 117th minute when substitute Saint-Maximin skipped past a number of defenders before lashing home a special winner to set up a clash at the Hawthorns with West Brom.