Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain WordPress subscriber account
-
DeliveryPOST crafted gdprConfig payload to ninja_gdpr_ajax_actions AJAX endpoint
-
ExploitBypass missing capability and nonce checks in handleAjaxCalls()
-
InstallMalicious script stored in gdprConfig database values
-
C2Victim visits site, generateCSS() echoes payload into wp_head <style> block
-
ExecuteBrowser executes injected JavaScript
-
ImpactSession hijack or phishing payload delivered to victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to hold a valid WordPress account with at minimum subscriber-level privileges (CVSS PR:L confirmed). The WP GDPR Cookie Consent plugin must be installed and active on the target site running version 1.0.0 or earlier. The plugin's AJAX handler is registered globally for authenticated users, so no specific plugin configuration or non-default setting beyond simple installation is required. Exploitation is NOT possible by unauthenticated users - a valid WordPress session token is required, which limits risk on sites that do not allow open registration or that tightly control account creation. The injected payload persists in stored configuration (gdprConfig), meaning a single successful write request causes ongoing impact for all future site visitors until the payload is removed. There is no user interaction required on the attacker's side (UI:N), but victim users must visit an affected page for the XSS payload to execute against them. |
| Impact | The CVSS 3.1 score of 6.4 (Medium) with vector AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N is well-calibrated for this vulnerability. The network attack vector and low complexity confirm remote exploitation with no special conditions beyond a subscriber account. The Changed Scope is the most significant risk multiplier: a single compromised or malicious subscriber can inject scripts that execute for every visitor to affected pages, enabling session hijacking, credential phishing, or malvertising at scale. PR:L (low privileges required) means any registered user - including self-registered subscribers on open-registration WordPress sites - can exploit this, substantially widening the attacker pool compared to admin-only issues. No EPSS score was provided in the input data, so quantitative exploitation probability cannot be stated. No CISA KEV listing exists and no public POC has been identified, suggesting this has not yet attracted mass exploitation. However, the low entry barrier (subscriber account) and the architectural nature of the flaw (three cooperating missing controls, not a single off-by-one) means it is unlikely to be a false positive. Priority should be elevated on any WordPress site with open user registration or untrusted subscriber accounts. |
| Exploit ScenarioDerived | An attacker registers a free subscriber account on a WordPress site running WP GDPR Cookie Consent 1.0.0 with open user registration enabled. The attacker sends a crafted POST request to wp-admin/admin-ajax.php with action=ninja_gdpr_ajax_actions and injects a malicious JavaScript payload into a gdprConfig field; because handleAjaxCalls() performs no capability or nonce check, the payload is accepted and stored. Every subsequent visitor to the site triggers generateCSS() on wp_head, which renders the injected payload inside a <style> block, and the browser executes the attacker's script - enabling session cookie theft or redirects to phishing pages at scale. No public POC has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 09, 2026
Stored Cross-Site Scripting in the WP GDPR Cookie Consent WordPress plugin (versions up to and including 1.0.0, by techjewel) allows authenticated attackers with subscriber-level access to inject persistent malicious scripts into pages served to all site visitors. The vulnerability chains three distinct weaknesses in the handleAjaxCalls() function: absent capability verification, missing nonce validation, and unsanitized gdprConfig values that are echoed verbatim by generateCSS() into a <style> block on wp_head. No public exploit code or CISA KEV listing has been identified at time of analysis, but the low privilege bar (subscriber-level) and changed scope (S:C) make this a meaningful risk for multi-user WordPress sites.
RemediationAI
No vendor-released patched version has been confirmed in the available data - the CPE wildcard and absence of a fixed-version reference in any advisory or trac changelog entry indicate a patch may not yet be publicly released. Site administrators should immediately check the WordPress plugin repository for an update beyond version 1.0.0 and apply it if available. Until a patch is confirmed, the most effective compensating control is to deactivate and remove the WP GDPR Cookie Consent plugin entirely; this eliminates the attack surface with no functional trade-off beyond losing the cookie consent banner, which can be replaced by an alternative plugin. If removal is not possible, restricting user registration to prevent untrusted subscriber accounts (Settings > General > uncheck 'Anyone can register') will raise the effective privilege bar and limit exploitation to already-trusted users, though this does not eliminate the vulnerability. Network-level WAF rules targeting the 'ninja_gdpr_ajax_actions' AJAX action parameter in POST requests to wp-admin/admin-ajax.php can add a detection layer but should not be relied upon as a primary control. Wordfence's advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/95c7f999-3676-4b91-9ee0-f55a27bcd93c should be monitored for patch confirmation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is the WP GDPR Cookie Consent plugin (CPE: cpe:2.3:a:techjewel:wp_gdpr_cookie_consent:*:*:*:*:*:*:*:*), a WordPress plugin by techjewel designed to manage GDPR cookie consent banners. The vulnerability is rooted in CWE-79 (Improper Neutralization of Input During Web Page Generation - Stored XSS). Three cooperating weaknesses are present: (1) the handleAjaxCalls() function registered under the 'ninja_gdpr_ajax_actions' AJAX hook performs no WordPress capability check (e.g., current_user_can()) and no nonce validation, allowing any authenticated user regardless of role to invoke it; (2) gdprConfig values submitted via this AJAX endpoint are stored without adequate sanitization; and (3) the generateCSS() function at GdprHandler.php:L169 echoes those stored configuration values directly into a <style> block injected via wp_head, with no output escaping. The CVSS Scope:Changed designation reflects that injected scripts execute in the browser context of any visitor, crossing the trust boundary from the attacker's session to all users of the affected WordPress site.
Know when Wp Gdpr Cookie Consent gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Primary rating from Vendor (Wordfence) · only source for this CVE.
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The WP GDPR Cookie Consent plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'ninja_gdpr_ajax_actions' AJAX action in versions up to, and including, 1.0.0. This is due to missing capability and nonce checks on the handleAjaxCalls() function, combined with insufficient input sanitization on the gdprConfig values and missing output escaping in the generateCSS() function which echoes stored configuration values directly into a <style> block rendered on wp_head. This makes it possible for authenticated attackers, with subscriber-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-35310
GHSA-3vwc-x4cp-8232
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB