Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted comment as anonymous user
-
DeliveryAdministrator approves attacker's initial comment
-
ExploitPost auto-approved comment with script payload
-
ExecutionPayload stored and rendered via Thickbox lightbox
-
ImpactExecute arbitrary JavaScript in visitor's browser
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires two specific, non-default conditions both named in the description: (1) the site administrator must have configured the Thickbox lightbox effect with the 'Try to apply to all images' context (thumbEffectContext=all_images); and (2) an administrator must approve the attacker's initial comment, which causes subsequent comments from that same author to be auto-approved and thus stored without moderation. The attacker is unauthenticated per PR:N in the supplied vector. The limiting factors - a non-default lightbox configuration plus a human administrator approving the attacker's first comment - meaningfully constrain real-world exploitability despite the network, no-privilege vector; sites using default lightbox settings or strict comment moderation are not exposed. |
| Impact | The input assigns a CVSS 3.1 base score of 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N), driven largely by the Scope-Changed flag typical of XSS (attacker script runs in a victim's browser context) combined with network vector and no required privileges. However, the real-world risk is materially lower than the 7.2 implies because exploitation is gated by two non-attacker-controlled preconditions stated in the description: the administrator must have enabled the Thickbox lightbox with 'Try to apply to all images' (thumbEffectContext=all_images), a non-default configuration, AND an administrator must first approve the attacker's initial comment so that subsequent comments from that author are auto-approved. These conditions mean the AC:L in the supplied vector understates the true complexity. No CISA KEV listing is present (no confirmed active exploitation), no EPSS score was supplied, and the references contain only the Wordfence advisory and WordPress trac source/changeset links - none is verified as working exploit code, so this is not a confirmed public exploit. The vuln.today Decision label is 'this_week' (not act_now/emergency), consistent with a credible, patch-worthy stored XSS that is not an active-exploitation emergency. Net: a genuine stored XSS worth patching, but a conditional, configuration-dependent issue rather than a drop-everything priority. |
| Exploit ScenarioDerived | An unauthenticated attacker submits a comment on a NextGEN Gallery image and, once an administrator approves that first comment, posts a follow-up comment (now auto-approved) containing a malicious script in the 'comment' parameter. On a site where the Thickbox lightbox is configured to apply to all images, the stored payload renders unescaped and executes arbitrary JavaScript in the browser of any visitor who views the affected gallery page. No verified public exploit code was identified in the provided sources; the references are the Wordfence advisory and plugin source/changeset links. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 21, 2026
Stored cross-site scripting in the WordPress plugin NextGEN Gallery (Photo Gallery, Sliders, Proofing and Themes) affects all versions up to and including 4.5.6: the 'comment' parameter is neither sanitised on input nor escaped on output, so an unauthenticated visitor can plant script that runs in a victim's browser when the injected page is viewed. Two gating conditions sharply limit real-world exposure - the administrator must have set the Thickbox lightbox effect to the 'Try to apply to all images' context (thumbEffectContext=all_images), and an administrator must first approve the attacker's initial comment so that later comments from that same author bypass moderation. No public exploit code and no confirmed active exploitation were identified at time of analysis, and the team's own assessment raises the attack complexity to High (CVSS 3.1 base 7.2) because of those prerequisites.
RemediationAI
Fixes have been committed to the plugin repository in changesets 3807405 and 3807407 (https://plugins.trac.wordpress.org/changeset/3807405/nextgen-gallery/trunk/static/Lightbox/thickbox/thickbox.js and https://plugins.trac.wordpress.org/changeset?reponame=&new=3807407%40nextgen-gallery&old=3793265%40nextgen-gallery), which touch the Thickbox lightbox script; because these are upstream commits rather than a tagged release, confirm on the vendor advisory page which published plugin version carries the fix before upgrading, and update NextGEN Gallery to that version or later. If an immediate update is not possible, the two documented preconditions can be broken: switch the lightbox effect away from Thickbox or away from the 'Try to apply to all images' context (thumbEffectContext not set to all_images), which removes the rendering path entirely at the cost of losing the all-images lightbox behaviour; and keep WordPress comment moderation strict so that no author's comments become auto-approved, which blocks the stored payload from landing - with the trade-off of added editorial workload. Updating remains the only complete fix; the configuration change alone does not remove the underlying lack of sanitisation and escaping.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
NextGEN Gallery is a WordPress plugin for managing image galleries, albums and slideshows, and it ships several JavaScript lightbox implementations - the vulnerable path is the bundled Thickbox lightbox (static/Lightbox/thickbox/thickbox.js) together with the lightbox context logic (static/Lightbox/lightbox_context.js) and the server-side display handler (src/Display/LightboxManager.php). The flaw is CWE-79 (improper neutralisation of input during web page generation): the 'comment' parameter reaches the page without adequate input sanitisation and without output escaping, so script content persists in the database and executes in the browser of anyone loading the affected page. Because the injected script runs inside the site's origin, the Scope-Changed metric applies - the payload operates in the victim's browsing context rather than the plugin's own. The trigger is not described in the available sources beyond the parameter name and the lightbox rendering path; what the sources do establish is that the vulnerable code is only reached in the Thickbox lightbox when the context is set to all images (thumbEffectContext=all_images), which is a non-default configuration, and that the stored payload only lands unmoderated after an administrator approves the author's first comment. Sites on default lightbox settings or with tight comment moderation do not satisfy those conditions.
Know when Wordpress Plugin gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Network, unauthenticated stored XSS with scope change (browser context), but AC:H because success depends on a non-default lightbox config and an administrator approving the attacker's first comment; limited C/I, no availability impact.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 4.5.6 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This requires the site administrator to have configured the Thickbox lightbox effect with the "Try to apply to all images" context (thumbEffectContext=all_images), and exploitation additionally depends on an administrator approving the attacker's initial comment so that subsequent comments from that author are auto-approved.
Executive ViewAI
NextGEN Gallery, a widely used WordPress plugin, contains a stored cross-site scripting vulnerability (CVE-2026-126011) affecting all versions up to 4.5.6. An unauthenticated attacker could inject malicious scripts that execute in an administrator's browser, potentially leading to site takeover, but only if the site uses a specific lightbox setting and the attacker's initial comment is approved. Leadership should prioritize patching due to the plugin's popularity and the high privileges at risk.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) change the Thickbox lightbox effect context from 'Try to apply to all images' to a different setting to remove the gating condition, and (2) enforce strict comment moderation policies, ensuring that only trusted administrators approve comments and that any suspicious comments are rejected.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Wordpress Plugin
View allThe Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint
The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in
EUVD-2026-132030
GHSA-mrm6-w4r7-73xh
NVD
CVE.org
EPSS
Exploit-DB