Stored cross-site scripting in NextGEN Gallery plugin for WordPress
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
The Photo Gallery, Sliders, Proofing and Themes NextGEN Gallery plugin for WordPress by smub is affected in all versions up to and including 4.5.6. The comment parameter is not properly sanitized or escaped, a cross-site scripting flaw (CWE-79) that stores injected scripts in pages. An unauthenticated attacker can inject scripts that run when a user opens an injected page, but only if the Thickbox lightbox applies to all images and an administrator approves the attacker's initial comment.
Written with Claude Haiku 5.5 from the sources below · 2026-11-21
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for Photo Gallery, Sliders, Proofing and Themes (NextGEN Gallery).
Written with Claude Haiku 5.5 from the sources below · 2026-11-21
Timeline
- 2026-11-21 Threatist record created from CVE-2026-126011
- 2026-11-21 Alias added: GHSA-mrm6-w4r7-73xh
- 2026-11-23 CISA SSVC decision points changed
References
Other 7
- https://www.wordfence.com/threat-intel/vulnerabilities/id/58cdef33-0791-4c0a-975c-e20c50ceb159?source=cve
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.6/static/Lightbox/thickbox/thickbox.js#L496
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.6/static/Lightbox/lightbox_context.js#L6
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.6/src/Display/LightboxManager.php#L319
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.6/static/Lightbox/thickbox/thickbox.js#L35
- https://plugins.trac.wordpress.org/changeset?reponame=&new=3807407%40nextgen-gallery&old=3793265%40nextgen-gallery
- https://plugins.trac.wordpress.org/changeset/3807405/nextgen-gallery/trunk/static/Lightbox/thickbox/thickbox.js
More smub vulnerabilities
- TI-2025-12465 Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 3.59.12 - Authenticated… CVSS 3.1HIGH 8.8
- TI-2026-83530 Remote code execution in NextGEN Gallery plugin for WordPress CVSS 3.1HIGH 8.8
- TI-2026-78567 PHP object injection in Duplicator and Duplicator Pro plugins CVSS 3.1HIGH 8.8
- TI-2026-07755 WPCode <= 2.3.5 - Authenticated (Author+) Remote Code Execution via CPT Capability Bypass via XML-RPC wp.newPost CVSS 3.1HIGH 8.8
- TI-2026-01649 ExactMetrics 8.6.0 - 9.0.2 - Authenticated (Custom) Insecure Direct Object Reference to Arbitrary Plugin Installation CVSS 3.1HIGH 8.8
- TI-2026-01160 Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery <= 4.0.4 - Authenticated (Author+) Local File Inclusion CVSS 3.1HIGH 8.8
Sources
- CVE-2026-126011 · CVE Program
- CVE-2026-126011 · NVD
- FIRST EPSS
- GHSA-mrm6-w4r7-73xh · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences