Troy Taormina-USA TODAY Sports

Oswaldo Cabrera went 4-for-5 with three RBIs as the New York Yankees followed a two-run seventh inning with a four-run eighth to top the host Houston Astros 7-1 on Friday.

New York's Juan Soto went 3-for-4 with an RBI. Giancarlo Stanton hit a 419-foot homer to left-center in the ninth.

Cabrera and Soto teamed to rally the Yankees past the Astros in the latter innings for the second time in as many games.

On Friday, Cabrera delivered an RBI single off Astros reliever Tayler Scott (0-1) with one out in the seventh that knotted the score at 1-1 two batters before Soto greeted Houston right-hander Rafael Montero with a bases-loaded walk that forced home Austin Wells.

The Yankees capitalized on the Astros' shaky defense an inning later.

Anthony Rizzo scored on a throwing error by Houston shortstop Jeremy Pena that lifted the Yankees to a 3-1 lead just before Astros reliever Parker Mushinski fielded a sacrifice bunt from Wells only to throw wildly past Jose Altuve covering first base. Alex Verdugo scored on the second Houston error of the frame, and Cabrera followed with a two-run single that drove home Anthony Volpe and Wells.

Astros starter Cristian Javier continued his mastery of the Yankees, twirling six shutout innings while allowing four hits and one walk and striking out six. In seven career appearances (six starts) against the Yankees between the regular season and postseason, Javier has a 1.70 ERA with 44 strikeouts in 37 innings.

Soto and Cabrera were responsible for all four hits registered off Javier, with the rest of the Yankees lineup going 0-for-18 with a two-out walk worked by Rizzo in the sixth.

Javier threw 90 pitches, 56 for strikes.

Alex Bregman recorded an RBI single that scored Altuve in the first, but the Astros squandered multiple opportunities against Yankees starter Carlos Rodon, stranding six baserunners -- four in scoring position -- over the first four innings. Rodon lasted 4 1/3 innings, yielding one run on five hits and three walks with four strikeouts.

More must-reads:

TODAY'S BEST
Cardinals head coach warns not to bet against Kyler Murray
Details emerge on Jason Kelceā€™s role at ESPN
Rangers defenseman wins Mark Messier Leadership Award
Ex-NFL head coach takes over as Arena Football League commish
Yankees young stud takes major step in return from injury
See top groupings for Rounds 1 and 2 at 2024 PGA Championship
Former Bruins winger dead at 75
Brewers lose team-leading home run hitter to injured list
Super Bowl-winning safety plans to retire after 2024 season
Canucks' Nikita Zadorov takes a shot at NHL over teammate's suspension
Sports radio star Doug Gottlieb to coach college hoops while staying on the air
NFL scores big win in legal battle with ex-Raiders head coach
Astros 3B breaks out of slump in contract year
Cardinals sign second-round CB
Micah Parsons makes history with new Bleacher Report deal
Celtics assistant named candidate for Lakers HC job
Rudy Gobert fined $75,000 for gesture in Game 4
Former Canadiens GM on Blue Jackets' radar
Cubs designate lefty reliever for assignment
Two-time Super Bowl champ signs with AFC contender