# prettyPhoto JavaScript Library <= 1.9.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Lightbox Link URL

- **ID:** WPSEC-2026-4156
- **Plugin:** WP Video Lightbox (`wp-video-lightbox`), https://wordpress.org/plugins/wp-video-lightbox/
- **Affected versions:** all versions before 1.9.13
- **Fixed in:** 1.9.13 (Update to 1.9.13 or later.)
- **Severity:** Medium 5.4 (CVSS:3.1/AV:N/AC:L/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-28)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-video-lightbox
- **Fix released:** 2026-11-27
- **Published:** 2026-11-28
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4156/

## Description

The WP Video Lightbox plugin for WordPress is vulnerable to Stored Cross-Site Scripting via lightbox link URLs handled by the bundled prettyPhoto library in all versions up to, and including, 1.9.1, due to the library inserting the href of a lightbox link into its image, iframe, flash, quicktime and gallery markup through plain string replacement, without attribute escaping or a check that the URL uses http or https. This makes it possible for authenticated attackers, with contributor-level access and above, to put crafted lightbox links in posts that run arbitrary web scripts when a user opens the lightbox.

## References

- https://wpsec.com/vuln/WPSEC-2026-4156/
- https://plugins.svn.wordpress.org/wp-video-lightbox/tags/1.9.13/
- https://wordpress.org/plugins/wp-video-lightbox/

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

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.
