# Responsive Lightbox & Gallery <= 2.7.11.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Featherlight Data Attributes

- **ID:** WPSEC-2026-4086
- **Plugin:** Responsive Lightbox & Gallery (`responsive-lightbox`), https://wordpress.org/plugins/responsive-lightbox/
- **Affected versions:** from 1.6.10 before 2.7.12
- **Fixed in:** 2.7.12 (Update to 2.7.12 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 High, affected versions High (as of 2026-11-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/responsive-lightbox
- **Fix released:** 2026-11-26
- **Published:** 2026-11-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4086/

## Description

The Responsive Lightbox & Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via Featherlight data attributes in versions 1.6.10 up to, and including, 2.7.11.1. The cause is that the bundled Featherlight gallery script reads lightbox options, including callbacks, from data attributes in the page markup, and the plugin did not turn this off for gallery lightboxes. The plugin also accepted the lightbox script from a request parameter, so the Featherlight script could be loaded on sites that use another lightbox. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute when a user opens the lightbox on an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-4086/
- https://plugins.svn.wordpress.org/responsive-lightbox/tags/2.7.12/
- https://wordpress.org/plugins/responsive-lightbox/

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

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.
