PULLMAN, Wash. (CBS/AP) — Washington State kicker Erik Powell finally missed on his sixth kick of the game, going wide right on a 43-yarder as time expired to allow No. 8 Stanford to escape with a 30-28 win on Saturday night.

Powell tied Drew Dunning’s 2003 school record with five field goals despite rainy, windy conditions, but pulled the last one wide.

Conrad Ukropina kicked a 19-yard field goal with 1:54 left to put Stanford ahead.

Quarterback Kevin Hogan ran for 112 yards and two touchdowns for Stanford (7-1, 6-0 Pac-12), which is the only undefeated team in Pac-12 play.

Washington State (5-3, 3-2) had a three-game winning streak snapped.

The Cougars haven’t beaten a Top 10 team since topping No. 5 Texas in the 2003 Holiday Bowl.

Stanford punted while trailing 28-27 with 5:08 left, but got the ball back on Quenton Meeks’ second interception of the game with 3:27 remaining. That set up Ukropina’s field goal.

Stanford scored first on Ukropina’s 32-yard field goal, but then Powell hit four straight kicks — including makes from 46 and 47 yards — to put Washington State up 12-3 at halftime.

The Cougars opened the second half by driving to the Stanford 11, but two incomplete passes killed the drive and Powell kicked a 28-yard field goal for a 15-3 lead.

Stanford replied with the game’s first touchdown on Remound Wright’s 2-yard dive. The score was set up by Hogan’s 39-yard bootleg scramble.

Washington State came right back with a 75-yard drive in four plays, the final a 19-yard touchdown pass from Luke Falk to Gabe Marks for a 22-10 lead.

Ukropina kicked a 32-yard field goal late in the third, then Hogan’s 59-yard touchdown run cut the Washington State lead to 22-20.

On the next series, Meeks intercepted Falk, giving Stanford the ball on Washington State’s 17. Hogan ran 6 yards untouched up the middle to give Stanford a 27-22 lead in the opening seconds of the fourth.

Washington State came back with an 81-yard drive that ended with Falk hitting River Cracraft for a 1-yard touchdown pass. Falk’s conversion pass failed and the Cougars led 28-27.

After Ukropina’s kick, Washington State marched to the Stanford 29 and Powell hooked his attempt wide.

The Cardinal have won seven straight over the Cougars.

© Copyright 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.