# CVE-2026-126011: Photo Gallery, Sliders, Proofing and Themes <= 4.5.6 - Unauthenticated Stored Cross-Site Scripting via Comment Link via Thickbox Lightbox 'all_images' Context

- Severity: High 7.2 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2026-11-21T07:45:20.314Z
- Modified: 2026-11-23T17:17:30.753Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery: up to 4.5.6

## References

- <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>

## Sources

- CVE List: [CVE-2026-126011](https://www.cve.org/CVERecord?id=CVE-2026-126011), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-126011](https://nvd.nist.gov/vuln/detail/CVE-2026-126011), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-126011 · Whole record: https://cve.day/CVE-2026-126011.json · Rebuilt by cve.day 2026-11-25T22:59:52.503Z
