# Photo Gallery, Sliders, Proofing and Themes <= 4.5.6 - Authenticated (Contributor+) Stored Cross-Site Scripting via Lightbox Content Links

- **ID:** WPSEC-2026-3365
- **Plugin:** Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery (`nextgen-gallery`), https://wordpress.org/plugins/nextgen-gallery/
- **Affected versions:** all versions before 4.6.0
- **Fixed in:** 4.6.0 (Update to 4.6.0 or later.)
- **Severity:** Medium 4.4 (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-18)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/nextgen-gallery
- **Fix released:** 2026-11-17
- **Published:** 2026-11-18
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3365/

## Description

The Photo Gallery, Sliders, Proofing and Themes plugin for WordPress is vulnerable to Stored Cross-Site Scripting via links that wrap images in post content in all versions up to, and including, 4.5.6, due to the Fancybox and Thickbox lightbox scripts loading the linked URL and inserting the response into the page without restricting it to the site's own origin. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts that execute when a user clicks an injected link, on sites where the Fancybox or Thickbox lightbox is selected and set to apply to all images.

## References

- https://wpsec.com/vuln/WPSEC-2026-3365/
- https://plugins.svn.wordpress.org/nextgen-gallery/tags/4.6.0/
- https://wordpress.org/plugins/nextgen-gallery/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3365/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
