# WPLP Cookie Consent – Cookie Banner & Consent Management for GDPR, CCPA & Google Consent Mode <= 4.5.0 - Unauthenticated Stored Cross-Site Scripting via Data Subject Access Request Form

- **ID:** WPSEC-2026-4279
- **Plugin:** WPLP Cookie Consent – Cookie Banner, Cookie Notice, Cookie Scanner & Script Blocker for GDPR, CCPA & Google Consent Mode v2 (`gdpr-cookie-consent`), https://wordpress.org/plugins/gdpr-cookie-consent/
- **Affected versions:** all versions before 4.5.1
- **Fixed in:** 4.5.1 (Update to 4.5.1 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/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-12-01)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/gdpr-cookie-consent
- **Fix released:** 2026-11-30
- **Published:** 2026-12-01
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4279/

## Description

The WPLP Cookie Consent plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the name and email fields of the Data Subject Access Request form in all versions up to, and including, 4.5.0. This is due to insufficient output escaping: submitted values are only passed through sanitize_text_field() and esc_html() and are then printed into the Data Requests table on the admin Compliance Records page, which is compiled as a Vue template, so curly-brace template expressions survive. This makes it possible for unauthenticated attackers to inject template expressions that execute arbitrary JavaScript in an administrator's browser when the administrator views the Data Requests records.

## References

- https://wpsec.com/vuln/WPSEC-2026-4279/
- https://plugins.svn.wordpress.org/gdpr-cookie-consent/tags/4.5.1/
- https://wordpress.org/plugins/gdpr-cookie-consent/

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

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.
