NEW YORK -- Dioner Navarro had a tiebreaking single with two outs in the top of the ninth inning as the Toronto Blue Jays edged the New York Yankees 5-4 on Sunday afternoon for their second straight win at Yankee Stadium following a 17-game losing streak.

The Blue Jays (56-50) won for the seventh time in 10 games despite blowing a 2-0 lead and a pair of one-run leads. They manufactured the go-ahead run in the ninth against New York closer David Robertson (1-3).

After shortstop Jose Reyes grounded out, left fielder Melky Cabrera singled but was erased on a force play by first baseman Jose Bautista.

Robertson allowed Bautista to steal second uncontested and that turned out to be the difference when Navarro blooped a 2-2 cutter in front of right fielder Zelous Wheeler.

Rookie Aaron Sanchez (1-0) picked up the win despite allowing a game-tying single to designated hitter Carlos Beltran in the eighth. He kept the game tied by getting first baseman Brian McCann to ground out into a defensive shift.

Casey Janssen pitched a perfect ninth for his 16th save in 18 opportunities and Toronto secured the victory when Cabrera made a sliding catch on pinch hitter Ichiro Suzuki's sinking liner.

The Blue Jays took a 2-0 lead on Bautista's ground out in the first and third baseman Juan Francisco's 16th home run in the fifth against New York right-hander Shane Greene. The Yankees tied it on back-to-back home runs by Headley and catcher Francisco Cervelli in the fifth off Toronto lefty J.A. Happ.

The teams also traded runs in the sixth as Colby Rasmus had a one-out double that chased Greene but McCann beat out an infield single off left-hander Brett Cecil.

The Blue Jays regained the lead by capitalizing on shoddy defense by the Yankees in the eighth.

Rasmus led off with a walk and then advanced to third on Dellin Betances' errant pickoff throw. Four pitches later, he scored on a sacrifice fly by second baseman Muenori Kawasaki but that lead was lost when Beltran slapped a single into left field, scoring left fielder Brett Gardner.

Happ allowed three runs and four hits in 5 1/3 innings while Greene gave up three runs and eight hits in 5 2/3 innings.

NOTES: New York 1B Mark Teixeira missed his seventh straight game with a lower lat strain but manager Joe Girardi said he was feeling better. Teixeira took 25 practice at-bats from each side of the plate and is taking ground balls. The Yankees said that he remains day-to-day. ... DH Carlos Beltran is continuing to throw and could return to right field soon after not playing it since prior to injuring his right elbow in mid-May. ... The Blue Jays activated OF Nolan Reimold from the 15-day disabled list after missing two weeks with a strained left calf. ... To clear room for Reimold, Toronto designated LHP Esmil Rogers for assignment. Rogers had a 6.97 ERA in 16 appearances.