Tracking Scripts Slip Past Consent Banners, Exposing Users to Unchecked Data Collection
A recent investigation by security researchers at GBHackers has highlighted a hidden vulnerability in the way many websites handle user consent, showing that tracking technologies can operate unhindered even after a visitor declines cookies.
Consent banners, now a common sight on the internet, are designed to let users express their preferences about data collection. When a visitor makes a choice, the banner typically stores that decision in a cookie or a local‑storage entry, which other scripts on the page are supposed to read before activating any trackers.
In practice, however, the banner’s record of consent does not stop the browser from loading external resources. Pixels, session‑replay scripts, and other third‑party tags are often inserted via plain <script> elements or image requests that fire as soon as the page loads, regardless of the stored preference. Because the browser treats these requests as ordinary network calls, they bypass the consent check entirely.
The researchers call this phenomenon “tag leakage.” It occurs when a site’s code fails to gate the execution of tracking tags behind the consent flag, allowing data to be sent to advertisers, analytics providers, or even malicious actors before the user’s decision is respected. The problem is compounded by the fact that many consent management platforms only monitor cookies, leaving other storage mechanisms and direct network calls unchecked.
Privacy regulators have taken note of the loophole, as it undermines the intent of laws such as the EU’s GDPR and California’s CCPA, which require meaningful consent before personal data is processed. If tracking scripts can run unchecked, the legal basis for data collection becomes questionable, exposing both publishers and third‑party vendors to potential enforcement actions.
Industry experts suggest several mitigations: integrating consent checks directly into the loading logic of every third‑party script, employing server‑side filtering to block requests from non‑consenting users, and adopting privacy‑focused browser extensions that can enforce consent at the network level. As awareness grows, it is likely that both regulators and technology providers will push for stricter standards to close the tag‑leakage gap before it becomes a widespread compliance issue.
Comments (0)
Be the first to comment.
Join the discussion