WASHINGTON — Serious gaps in security and customer privacy affect nearly every vehicle that uses wireless technology, according to a report set to be released on Monday by a senator’s office.

The report concludes that security measures to prevent hackers from gaining control of a vehicle’s electronics are “inconsistent and haphazard,” and that the majority of automakers do not have systems that can detect breaches or quickly respond to them.

“Drivers have come to rely on these new technologies, but unfortunately the automakers haven’t done their part to protect us from cyberattacks or privacy invasions,” said the senator, Edward J. Markey, Democrat of Massachusetts, whose office published the report after obtaining detailed information from 16 automakers.

In addition to finding “a clear lack of appropriate security measures to protect drivers against hackers who may be able to take control of a vehicle” or hackers who wish to “collect and use personal driver information,” the report expressed concerns over how automakers track drivers’ behavior and collect, transmit and store that information.