# Complianz GDPR/CCPA Cookie Consent Banner <= 7.5.7 - Unauthenticated Stored Cross-Site Scripting via Cookie Blocker Image Tag Handling

- **ID:** WPSEC-2026-3984
- **Plugin:** Complianz GDPR/CCPA Cookie Consent Banner (`complianz-gdpr`), https://wordpress.org/plugins/complianz-gdpr/
- **Affected versions:** all versions before 7.5.8
- **Fixed in:** 7.5.8 (Update to 7.5.8 or later.)
- **Severity:** Medium 5.4 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin High, affected versions High (as of 2026-11-26)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/complianz-gdpr
- **Fix released:** 2026-11-25
- **Published:** 2026-11-26
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3984/

## Description

The Complianz GDPR/CCPA Cookie Consent Banner plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the cookie blocker's image and stylesheet tag handling in all versions up to, and including, 7.5.7. This is due to loose regular expressions that accepted '|' as a quote character and could match '<img' text found inside other attributes' values or across tag boundaries. Visitor-supplied content, such as comment text, could therefore be treated as an image tag and rewritten with inserted double-quoted data attributes, which breaks out of the enclosing attribute and places the attacker-supplied URL text outside it. This makes it possible for unauthenticated attackers to inject arbitrary web scripts into pages that will execute whenever a user accesses an affected page. This requires a blocked service that registers image tags, such as Google Maps.

## References

- https://wpsec.com/vuln/WPSEC-2026-3984/
- https://plugins.svn.wordpress.org/complianz-gdpr/tags/7.5.8/
- https://wordpress.org/plugins/complianz-gdpr/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3984/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
