CVE-2026-8977
Deferred Deferred - Pending Action

Stored XSS in WP GDPR Cookie Consent WordPress Plugin

Vulnerability report for CVE-2026-8977, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-09

Last updated on: 2026-06-09

Assigner: Wordfence

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-09
Last Modified
2026-06-09
Generated
2026-06-29
AI Q&A
2026-06-09
EPSS Evaluated
2026-06-28
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
wp_gdpr_cookie_consent wp_gdpr_cookie_consent to 1.0.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The WP GDPR Cookie Consent plugin for WordPress has a Stored Cross-Site Scripting (XSS) vulnerability in versions up to and including 1.0.0. This occurs because the plugin's handleAjaxCalls() function lacks proper capability and nonce checks, and the gdprConfig values are not sufficiently sanitized. Additionally, the generateCSS() function outputs these stored configuration values directly into a style block without escaping, allowing an attacker with subscriber-level access or higher to inject malicious scripts. These scripts execute whenever a user visits a page containing the injected code.

Impact Analysis

This vulnerability allows authenticated attackers with low-level access (subscriber or above) to inject arbitrary JavaScript into web pages. This can lead to the execution of malicious scripts in the context of users visiting the affected site, potentially resulting in session hijacking, defacement, or other malicious actions that compromise user security and trust.

Compliance Impact

The vulnerability in the WP GDPR Cookie Consent plugin allows authenticated attackers to inject arbitrary scripts via stored cross-site scripting. This can lead to unauthorized access or manipulation of user data.

Such unauthorized script execution and potential data exposure can negatively impact compliance with data protection regulations like GDPR and HIPAA, which require safeguarding personal data and preventing unauthorized access.

Specifically, the vulnerability undermines the security controls expected to protect user data privacy and integrity, which are core requirements of these standards.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-8977. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart