Skip to main content

WP GDPR Cookie Consent CVE-2026-8977

| EUVDEUVD-2026-35310 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-09 Wordfence GHSA-3vwc-x4cp-8232
6.4
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Analysis Generated
Jun 09, 2026 - 05:12 vuln.today
CVE Published
Jun 09, 2026 - 03:41 nvd
MEDIUM 6.4

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.

AnalysisAI

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.

Technical ContextAI

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.

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.

CVE-2016-10045 CRITICAL POC
9.8 Dec 30

The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail comman

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-5084 CRITICAL POC
9.8 May 23

The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil

CVE-2024-8353 CRITICAL POC
9.8 Sep 28

The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all

CVE-2020-36847 CRITICAL POC
9.8 Jul 12

The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner

CVE-2025-11749 CRITICAL POC
9.8 Nov 05

The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint

CVE-2016-1209 CRITICAL POC
9.8 May 14

The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via

CVE-2024-4443 CRITICAL POC
9.8 May 22

The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based

CVE-2024-1698 CRITICAL POC
9.8 Feb 27

SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a

CVE-2023-6875 CRITICAL POC
9.8 Jan 11

The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i

CVE-2024-1512 CRITICAL POC
9.8 Feb 17

The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base

CVE-2024-3495 CRITICAL POC
9.8 May 22

The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' paramete

Share

CVE-2026-8977 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy