CVE-2026-126011
published high CVSS 3.1 · 7.2Photo Gallery, Sliders, Proofing and Themes <= 4.5.6 - Unauthenticated Stored Cross-Site Scripting via Comment Link via Thickbox Lightbox 'all_images' Context
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| smub | — | Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery0 through 4.5.6 · Other versions: unaffected | Affected | Not stated | Wordfence |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.2 / 10
- Severity
- high
- Provider
- Wordfence · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| smub | Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery | 0 through 4.5.6 (affected · semver)Default: unaffected | Wordfence · cna |
Weaknesses
1- CWE-79 CWE-79 Improper Neutralization of Input During Web Page Generation
References
7- 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/lightbox_context.js#L6
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.6/static/Lightbox/thickbox/thickbox.js#L35
- https://plugins.trac.wordpress.org/browser/nextgen-gallery/tags/4.5.6/static/Lightbox/thickbox/thickbox.js#L496
- https://plugins.trac.wordpress.org/changeset/3807405/nextgen-gallery/trunk/static/Lightbox/thickbox/thickbox.js
- https://plugins.trac.wordpress.org/changeset?reponame=&new=3807407%40nextgen-gallery&old=3793265%40nextgen-gallery
- https://www.wordfence.com/threat-intel/vulnerabilities/id/58cdef33-0791-4c0a-975c-e20c50ceb159?source=cve
Provider assertions
2Wordfence · cna
Photo Gallery, Sliders, Proofing and Themes <= 4.5.6 - Unauthenticated Stored Cross-Site Scripting via Comment Link via Thickbox Lightbox 'all_images' Context
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 70a6d1e993f136aa8495eacb4fd47c618ea6b98f937578ddf5de1ac2c33b05bc
- Ingested
- 23 Nov 2026, 16:30:17 UTC
- Source record
- Official CVE record