Vulnerabilities / Real Cookie Banner: GDPR & ePrivacy Cookie Consent / WPSEC-2026-2847
Real Cookie Banner: GDPR & ePrivacy Cookie Consent <= 5.4.0 - Unauthenticated Stored Cross-Site Scripting via Consent Record Referer and Viewed Page URLs
Medium 6.1
CWE-79Fixed in 5.4.3
- ID
- WPSEC-2026-2847
- Plugin
- Real Cookie Banner: GDPR & ePrivacy Cookie Consent (real-cookie-banner)
- Affected
- all versions before 5.4.3
- Remediation
- Update to 5.4.3 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-11-12
- Attack surface
- Real Cookie Banner: GDPR & ePrivacy Cookie Consent on WPSec AttackSurface
- Fix released
- Published
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/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS