BOSTON — Tyler Seguin came back to haunt his old team Tuesday night.

The talented center, banished to Dallas in July 2013 after three years in Boston, posted the seventh hat trick of his career to power the Stars to a 5-3 victory over the Bruins.

Seguin, booed every time he touched the puck or had his name announced, even though he left via trade and not free agency. scored two of Dallas’ three power-play goals as the Stars improved to 10-3-0 (5-2-0 on the road) and snapped the Bruins’ four-game winning streak.

A former University of Maine standout, center Devin Shore, made his NHL debut for the Stars. Shore was the AHL Player of the Month for October. Shore left UMaine after the 2014-15 season, his third with the Black Bears.

Six of Seguin’s hat tricks have come with the Stars, and the one he scored for Boston was on the road.

Defensemen Jyrki Jokipakka and Alex Goligoski (power play) also scored for Dallas — the first NHL goal for Jokipakka and the first goal of the season for Goligoski. Defenseman John Klingberg (11 points in the last eight games) and center Jason Spezza had two assists apiece in the win.

The Stars scored their five goals on the first 17 shots on Tuukka Rask, who did little to help his team and heard it from the crowd on stops late in the third period. He finished with 14 saves.

The Bruins (6-4-1) fell to 1-4-1 at home, and Rask has allowed 24 goals in the five losses. Boston is 5-0-0 on the road.

Stars goalie Kari Lehtonen made 36 saves in his first start since Oct. 24, raising his season record to 4-1-0 and his career mark against Boston to 8-8.

Bruins left winger Chris Kelly sustained a broken left femur less than two minutes in the game. He will undergo surgery Wednesday and will need six to eight months to recover.

Kelly was chasing the puck along the board in front of the benches along with Dallas center Colton Sceviour, who was behind him. Kelly’s left leg appeared to have buckled and he remained down on the ice in obvious pain for several minutes before being helped to the bench and then down the runway to the locker room.

Seguin opened the scoring with his 80th goal as a Star and his 300th NHL point 5:46 into the game. He would then come back to tie it after the Bruins scored twice.

The Bruins took a 2-1 lead, answering Seguin’s first goal with scores by defenseman Colin Miller, his first NHL goal, and winger Loui Eriksson, on a power play.

After right winger Brett Connolly went off 4:31 into the second period, Seguin blasted his seventh of the year to make it 2-2.

Jokipakka made it 3-2 Dallas with his shot through a screen from the left point with 2:42 left in the second period.

After goals by Seguin and Goligoski made it 5-2 in the third period, Eriksson, part of the Seguin deal, scored again.

NOTES: With RW David Pastrnak out with a foot injury, the Bruins recalled RW Alex Khoklachev from their AHL affiliate in Providence, where he was tied for the AHL scoring lead with 13 points in 10 games. … RW Ales Hemsky was out of the Dallas lineup with continuing hip trouble. … The game featured two of the three NHL players of the month for October — Dallas LW Jamie Benn No. 1 and Boston C David Krejci No. 3.