Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft malicious gallery URL with XSS payload
-
DeliveryDeliver link to victim via phishing or embedded content
-
ExploitVictim clicks link and browser loads NextGEN Gallery page
-
InstallUnsanitized input reflected into HTML response
-
C2Malicious JavaScript executes in victim's browser context
-
ExecuteExfiltrate session cookies or WordPress nonces
-
ImpactEscalate to admin-level site compromise
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 | The attacker requires no authentication and no account on the target WordPress site (PR:N from CVSS vector). Exploitation does require victim interaction - a user must visit or be socially engineered into loading a page or URL that triggers the XSS payload (UI:R from CVSS vector). The vulnerability is present in any WordPress deployment running NextGEN Gallery version 4.2.3 or earlier; no non-default plugin configuration is cited as a prerequisite in the available data, implying it affects standard plugin installations. Exploitation impact is bounded by the need for victim interaction, and the highest-impact scenarios - such as administrative session hijacking leading to full site takeover - depend on an administrator visiting the malicious page while actively authenticated. |
| Impact | The CVSS 3.1 base score of 7.1 (High) reflects a network-accessible, low-complexity attack requiring no authentication (AV:N/AC:L/PR:N) but mandating victim interaction (UI:R), which moderates realistic exploitability compared to fully automated attacks. The scope change (S:C) elevates the score above typical unauthenticated reflected XSS. No EPSS score was included in the input data, so exploitation probability cannot be quantified probabilistically. The absence of a CISA KEV listing and no identified public exploit code makes this a medium operational priority despite the High CVSS base score. For WordPress deployments where administrators or logged-in editors visit public gallery pages, the risk is materially higher due to the potential for privilege escalation via session hijacking or nonce theft. The A:L availability impact in the provided CVSS vector is atypical for XSS and may reflect page-disruption scenarios; this metric warrants verification against the full Patchstack advisory detail, as the available data does not explain it. |
| Exploit ScenarioDerived | An unauthenticated attacker identifies a NextGEN Gallery input vector - such as a URL parameter or gallery-related field - that reflects unsanitized content into the HTML response, then crafts a malicious link embedding a JavaScript payload. When a victim, including a logged-in WordPress administrator, visits the crafted URL or page, the script executes in their browser context, potentially exfiltrating session cookies or WordPress nonces that could enable full site compromise. No public proof-of-concept code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 06, 2026
Unauthenticated cross-site scripting in the NextGEN Gallery WordPress plugin (versions <= 4.2.3) allows a remote, unauthenticated attacker to inject arbitrary JavaScript into pages rendered for other users. The scope change (S:C) in the CVSS vector indicates the malicious script executes in the victim's browser context rather than being contained to the plugin itself, enabling session hijacking, credential theft, or malicious redirects against site visitors or administrators. No public exploit code or CISA KEV listing has been identified at time of analysis.
RemediationAI
Update NextGEN Gallery to the version released after 4.2.3; consult the Patchstack advisory at https://patchstack.com/database/wordpress/plugin/nextgen-gallery/vulnerability/wordpress-nextgen-gallery-plugin-4-2-3-cross-site-scripting-xss-vulnerability for the confirmed fixed release, as an exact patched version number was not independently verifiable from the available dataset - patch status is confirmed available per Patchstack advisory. As a compensating control pending upgrade, site operators can restrict public-facing gallery pages to authenticated users only, which eliminates unauthenticated exploitation but will break intended public gallery functionality. Web Application Firewall rules targeting XSS payloads in gallery-related request parameters can reduce exposure, though WAF bypass remains possible and should not substitute for patching. Deploying a restrictive Content Security Policy header with a script-src directive that blocks inline scripts can limit the blast radius of a successful XSS injection by preventing arbitrary script execution.
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 widely-used WordPress photo gallery plugin developed by Syed Balkhi (CPE: cpe:2.3:a:syed_balkhi:nextgen_gallery:*:*:*:*:*:*:*:*). The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-Site Scripting), indicating that user-controllable input is insufficiently sanitized or escaped before being reflected or stored in HTML output rendered to browsers. The scope change (S:C) in the CVSS 3.1 vector is significant: it signals that the XSS payload executes outside the security boundary of the plugin itself, meaning a script injected via NextGEN Gallery can run in the broader WordPress page context and access session cookies, localStorage, or perform privileged actions on behalf of the authenticated victim.
Know when Nextgen Gallery 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:R/S:C/C:L/I:L/A:L
Unauthenticated network XSS with browser-scope change warrants C:L and I:L; availability impact removed as standard XSS does not disrupt service availability.
Primary rating from Vendor (Patchstack).
CVSS VectorVendor: Patchstack
DescriptionCVE.org
Unauthenticated Cross Site Scripting (XSS) in NextGEN Gallery <= 4.2.3 versions.
Executive ViewAI
The NextGEN Gallery WordPress plugin (versions 4.2.3 and earlier) contains an unauthenticated cross-site scripting vulnerability that allows attackers to inject malicious scripts into pages viewed by site visitors and administrators. This enables session hijacking, credential theft, and malicious redirects, putting all site visitors at risk. Any WordPress installation using affected versions requires immediate remediation to prevent unauthorized access to administrative accounts and customer data.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Immediately disable NextGEN Gallery plugin on all affected WordPress installations; (2) Deploy Web Application Firewall rules targeting XSS payloads in gallery plugin URL parameters; (3) Implement Content Security Policy headers to block inline script execution; (4) Restrict WordPress admin dashboard access to known corporate IP ranges; (5) Enable comprehensive login and session logging to detect credential compromise; (6) Plan migration to alternative gallery solutions and prepare vendor evaluation criteria.
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 Nextgen Gallery
View allThe WordPress Gallery Plugin - NextGEN Gallery plugin for WordPress is vulnerable to unauthorized access of data due to
The WordPress Gallery Plugin WordPress plugin before 3.39 is vulnerable to PHAR Deserialization due to a lack of input p
The WordPress Gallery Plugin WordPress plugin before 3.39 is vulnerable to Arbitrary File Read and Delete due to a lack
In the eCommerce module of the NextGEN Gallery Pro WordPress plugin before 3.1.11, there is an action to call get_cart_i
The Photo Gallery, Sliders, Proofing and WordPress plugin before 3.59.3 does not sanitise and escape some of its setting
In post-new.php in the Photocrati NextGEN Gallery plugin 2.1.10 for WordPress, unrestricted file upload is available via
A SQL injection vulnerability exists in the Imagely NextGEN Gallery plugin before 3.2.11 for WordPress. Rated critical s
Authenticated SQL injection in NextGEN Gallery (WordPress plugin by Awesome Motive/Imagely) before version 4.2.1 allows
The WordPress Gallery Plugin WordPress plugin before 3.39 does not validate some block attributes before using them to g
In the nggallery-manage-gallery page in the Photocrati NextGEN Gallery plugin 2.1.15 for WordPress, XSS is possible for
The Photo Gallery, Sliders, Proofing and WordPress plugin before 3.59.5 does not sanitise and escape some of its Images
The NextGEN Gallery WordPress plugin before 3.59.1 does not sanitise and escape some of its settings, which could allow
EUVD-2026-53944
GHSA-9v8v-v93j-cwvg
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB