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
Lifecycle Timeline
2DescriptionCVE.org
Unauthenticated Cross Site Scripting (XSS) in NextGEN Gallery <= 4.2.3 versions.
AnalysisAI
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.
Technical ContextAI
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.
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.
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
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-53944
GHSA-9v8v-v93j-cwvg