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)
- Affected
- all versions before 7.5.8
- Remediation
- Update to 7.5.8 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin High · Affected versions High among sites WPSec scans, 2026-11-26
- Attack surface
- Complianz GDPR/CCPA Cookie Consent Banner on WPSec AttackSurface
- Fix released
- Published
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/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS