# Complianz GDPR/CCPA Cookie Consent Banner <= 7.5.5 - Unauthenticated Stored Cross-Site Scripting via YotuWP Cookie Blocker

- **ID:** WPSEC-2026-0883
- **Plugin:** Complianz GDPR/CCPA Cookie Consent Banner (`complianz-gdpr`), https://wordpress.org/plugins/complianz-gdpr/
- **Affected versions:** all versions before 7.5.6
- **Fixed in:** 7.5.6 (Update to 7.5.6 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-10-14)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/complianz-gdpr
- **Fix released:** 2026-10-13
- **Published:** 2026-10-14
- **URL:** https://wpsec.com/vuln/WPSEC-2026-0883/

## Description

The Complianz GDPR/CCPA Cookie Consent Banner plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the YotuWP integration's cookie blocker in all versions up to, and including, 7.5.5, due to a greedy regular expression and string replacements applied to the whole page output buffer. The rewrite inserts unescaped, double-quoted attribute markup wherever it finds the matched tokens, and the matched text can include visitor-supplied content such as comments. As a result, attribute values in that content can be broken out of. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page, on sites where the YotuWP plugin is active and YouTube is set up in Complianz.

## References

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

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

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.
