STANFORD, Calif. (AP) -- Tanner McKee threw a TD pass on an untimed down at the end of regulation to tie the game and another on the opening possession of overtime to lead Stanford to a 31-24 victory over No. 3 Oregon on Saturday.
McKee came back after leaving for a play on the final drive of regulation with an injury to tie it on a 2-yard pass to Elijah Higgins after a holding penalty by Oregon (4-1, 1-1 Pac-12) in the end zone extended the game one play.
McKee then gave the Cardinal (3-2, 2-1) the lead with a 14-yarder to John Humphreys in overtime. Stanford then forced Anthony Brown to throw an incomplete pass on fourth-and-8 to seal its fourth win against an Oregon team ranked in the top 10 since 2009.
The Ducks were appeared poised for their first 5-0 start in eight years when they rallied from 10 points down at halftime to take a 24-17 lead early in the fourth quarter on Brown's second TD run of the game.
But then McKee delivered the big plays late and the Cardinal capitalized on three Oregon penalties on the game-tying 87-yard drive in the final 1:59 of regulation.
McKee left the game for one play on the drive after being hit by Kayvon Thibodeaux on a play ruled targeting. Oregon was then called for another roughing the passer penalty and the holding penalty in the end zone on what appeared to be the final play.
The Cardinal got the untimed down and McKee delivered with the pass to Higgins. Stanford opted for the extra point and the game went to OT.
Stanford returns to play on a short week, traveling to Arizona State on Friday night.