The man was driving north on 80th Avenue in Chomedey around 4:30 a.m. ET and stopped at the intersection of Curé-Labelle Boulevard. A man walking on the sidewalk approached the vehicle and shot at the driver through the car window.
The driver suffered a minor shoulder injury and was taken to hospital. He has since been released.
A passenger in the car, another 23-year-old man, was not injured.
Police are unsure of the motive of the attack, and they have not said if the men knew each other nor whether either man has a criminal background.
Police are meeting with the victims now to get more information.