Mark Teixeira hit a two-run single in the Yankees' five-run first inning and a two-run triple in the seventh to give them the lead for good on Friday night as New York beat the Boston Red Sox 10-8.
Alex Rodriguez had three hits and Curtis Granderson scored three times for the Yankees, who improved to 3-0 against Boston this year.
David Ortiz and Adrian Gonzalez had three hits apiece for Boston, and Jarrod Saltalamacchia hit a three-run homer to help the Red Sox rally after Josh Beckett gave up five runs in the top of the first. It was 5-all when the inning ended.
Rafael Soriano got four outs for his 20th save — his first save of more than one inning since 2007.
Boone Logan (4-0) wound up with the win and Andrew Miller (2-1) took the loss.
It was the first game between the two rivals since the Yankees rallied from a 9-0 deficit with seven runs in the seventh and seven more in the eighth to win 15-9 on April 21 at Fenway Park.
This time, neither team could hold a lead.
The Yankees coughed up a 5-0 lead in the first and a 6-5 lead in the second, and Boston led 7-6 after five. But New York scored four times in the seventh inning, taking an 8-7 lead on Teixeira's triple.
Raul Ibanez doubled in Teixeira and scored on Eric Chavez's single to make it 10-7.
Beckett allowed six runs on eight hits and two walks, striking out five in five innings.
The first five Yankees all reached base — and scored — on three singles, a hit batsman and a walk. When Beckett got Nick Swisher on a flyout to right, the crowd cheered sarcastically, and it booed as he walked off the field at the end of the inning.
But Yankees starter Hiroki Kuroda was just as bad, giving up seven runs — six earned — on 10 hits and a walk while striking out three in 5 2-3 innings.
The Red Sox tied it in the bottom of the first, thanks in part to a two-run double by Gonzalez followed by Saltalamacchia's career-high 17th homer.
The teams traded single runs in the second inning before the pitchers settled down. The Yankees nearly took the lead in the fifth when Rodriguez singled and stole two bases. But he was thrown out trying to score on a grounder to second when Daniel Nava came home with the throw and Saltalamacchia blocked the plate.
Boston took a 7-6 lead in the fifth when Gonzalez singled, took second on a wild pitch and scored on Mauro Gomez's single — his first career RBI.
But the Yankees went ahead after Miller came in to start the seventh.
Granderson walked and Rodriguez singled and, after Robinson Cano struck out, Vicente Padilla came on to face Teixeira. The Yankees first baseman lined a triple to the deepest part of the ballpark, the center field triangle, just short of the 420-foot marker.
Granderson and Rodriguez scored and Teixeira slid into third without drawing a throw.
The Red Sox threatened another comeback when Cody Ross led off the bottom half with a homer and Gonzalez singled. But Logan struck out Saltalamacchia and Cody Eppley came on.
Gomez singled, but Mike Aviles hit a grounder that drew Jeter deep into the hole to his right and he threw to third for the force on Gonzalez. David Robertson struck out Nick Punto with runners on second and third to end the inning.