CVE-2024-8397 GDPR Cookie Consent <= 2.6.0 - Unauthenticated Stored XSS
Unauthenticated attackers can inject malicious scripts via IP headers, leading to code execution in the admin context when viewing consent reports.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-8397?
CVE-2024-8397 is a medium-severity cross-site scripting vulnerability in Unknown webtoffee-gdpr-cookie-consent, published on 15 May 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The webtoffee-gdpr-cookie-consent WordPress plugin before 2.6.1 does not properly sanitize and escape the IP headers when logging them, allowing visitors to conduct Stored Cross-Site Scripting attacks. The payload gets triggered when an admin visits the 'Consent report' page and the malicious script is executed in the admin context.
Weakness: CWE-79
Which versions are affected by CVE-2024-8397?
It affects 1 product.
Products include Webtoffee Gdpr Cookie Consent.
How do I fix CVE-2024-8397?
No fix has been published for CVE-2024-8397 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-8397 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8397 exists.
Other vulnerabilities in Unknown webtoffee-gdpr-cookie-consent
Sources
Also known as GHSA-j4qf-29vf-7xcj.