Greg Maddux also moved up on the all-time strikeouts list and Jose Macias posted his first career multi-triple game.
With the game tied after three innings, Sosa led off the fourth with his ninth homer of the season to give Chicago a 2-1 edge. The blast moved Sosa into a tie with Hall of Famer Mike Schmidt for ninth place on the all-time list.
The one-run cushion was enough for Maddux (3-3), who yielded one run and five hits in eight innings. The four-time Cy Young Award winner did not walk a batter but struck out four, giving him 2,800 and moving him ahead of Young for 15th place all-time.
Macias provided insurance for Maddux, leading off the eighth with a three-base hit and scoring on Ramon Martinez's single before ripping a three-run triple in the ninth.
Interpol investigating stolen passports on missing flight
Senate Democrats to pull all-nighter on climate change