# GDPR Compliance & Cookie Consent <= 1.6.2 - Authenticated (Administrator+) Stored Cross-Site Scripting via Data Access Form Class Settings

- **ID:** WPSEC-2026-1424
- **Plugin:** GDPR Compliance & Cookie Consent (`gdpr-compliance-cookie-consent`), https://wordpress.org/plugins/gdpr-compliance-cookie-consent/
- **Affected versions:** all versions before 1.6.3
- **Fixed in:** 1.6.3 (Update to 1.6.3 or later.)
- **Severity:** Medium 4.4 (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-22)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/gdpr-compliance-cookie-consent
- **Fix released:** 2026-10-21
- **Published:** 2026-10-22
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1424/

## Description

The GDPR Compliance & Cookie Consent plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'Input field classes' and 'Submit button classes' settings of the data access form in all versions up to, and including, 1.6.2, due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers with administrator-level permissions and above to inject arbitrary web scripts that execute whenever a user visits a page that shows the data access form (the [stm-gpdr-data-access] shortcode or the GDPR Compliance widget). This only affects multi-site installations and installations where unfiltered_html has been disabled.

## References

- https://wpsec.com/vuln/WPSEC-2026-1424/
- https://plugins.svn.wordpress.org/gdpr-compliance-cookie-consent/tags/1.6.3/
- https://wordpress.org/plugins/gdpr-compliance-cookie-consent/

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

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.
