# WF Magnific Lightbox <= 0.9.14 - Unauthenticated Stored Cross-Site Scripting via Image Links in Comments

- **ID:** WPSEC-2026-4528
- **Plugin:** WF Magnific Lightbox (`wf-magnific-lightbox`), https://wordpress.org/plugins/wf-magnific-lightbox/
- **Affected versions:** all versions before 0.9.15
- **Fixed in:** 0.9.15 (Update to 0.9.15 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wf-magnific-lightbox
- **Fix released:** 2026-12-02
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4528/

## Description

The WF Magnific Lightbox plugin for WordPress is vulnerable to DOM-based Stored Cross-Site Scripting via image links in all versions up to, and including, 0.9.14. This is due to the lightbox script attaching to every image-like link on the page, including links in visitor comments and reviews, and inserting the raw link URL into its HTML error messages through the bundled Magnific Popup library without escaping. This makes it possible for unauthenticated attackers who can post comments to inject arbitrary web scripts through a crafted link to an image that fails to load, which execute when a user opens the link in the lightbox.

## References

- https://wpsec.com/vuln/WPSEC-2026-4528/
- https://plugins.svn.wordpress.org/wf-magnific-lightbox/tags/0.9.15/
- https://wordpress.org/plugins/wf-magnific-lightbox/

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

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.
