Police said the man first struck the driver's side window, and when the owner started the car, he followed and punched the rear window, breaking it.
A North Yorkshire Police spokesperson said no one was injured in the incident, which happened at 6pm on January 2 at Baxter Gate.
The force released CCTV images of a man who said he needed to speak in connection with a crime investigation.
A North Yorkshire Police spokesperson said: “If you recognize the man seen on the CCTV, please get in touch.
“If you can help, please email george.mason@northyorkshire.police.uk.
“Alternatively, you can call North Yorkshire Police on 101 and select option 2 to ask for George Mason, or you can contact Crimestoppers anonymously on 0800 555 111 or via the website.”
Please quote reference number 12250001041 when communicating this information.