# Real Cookie Banner: GDPR & ePrivacy Cookie Consent <= 5.4.0 - Unauthenticated Stored Cross-Site Scripting via Consent Record Referer and Viewed Page URLs

- **ID:** WPSEC-2026-2847
- **Plugin:** Real Cookie Banner: GDPR & ePrivacy Cookie Consent (`real-cookie-banner`), https://wordpress.org/plugins/real-cookie-banner/
- **Affected versions:** all versions before 5.4.3
- **Fixed in:** 5.4.3 (Update to 5.4.3 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-12)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/real-cookie-banner
- **Fix released:** 2026-11-11
- **Published:** 2026-11-12
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2847/

## Description

The Real Cookie Banner plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the viewed page and referer URLs stored in consent records in all versions up to, and including, 5.4.0 due to the admin consent list rendering these visitor-supplied URLs as link targets without validating the URL scheme. This makes it possible for unauthenticated attackers to submit a consent containing a javascript: URL that executes in the session of an administrator who views the consent list and clicks the link.

## References

- https://wpsec.com/vuln/WPSEC-2026-2847/
- https://plugins.svn.wordpress.org/real-cookie-banner/tags/5.4.3/
- https://wordpress.org/plugins/real-cookie-banner/

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

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.
