Responsive Lightbox & Gallery <= 2.7.11.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Lightbox Link Attributes
- ID
- WPSEC-2026-4085
- Plugin
- Responsive Lightbox & Gallery (responsive-lightbox)
- Affected
- all versions before 2.7.12
- Remediation
- Update to 2.7.12 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin High · Affected versions High among sites WPSec scans, 2026-11-27
- Attack surface
- Responsive Lightbox & Gallery on WPSec AttackSurface
- Fix released
- Published
Description
The Responsive Lightbox & Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the lightbox link rewriting of post, gallery, comment and WooCommerce links in all versions up to, and including, 2.7.11.1. The cause is that anchor tags were rewritten with regular expressions that also matched attribute-like text inside other attribute values, and that text was replaced with quoted attribute markup that ends the enclosing attribute value. This makes it possible for authenticated attackers, with contributor-level access and above, to craft link markup that breaks out of its attribute context and injects arbitrary web scripts that execute whenever a user accesses an injected page.
References
- https://wpsec.com/vuln/WPSEC-2026-4085/
- https://plugins.svn.wordpress.org/responsive-lightbox/tags/2.7.12/
- https://wordpress.org/plugins/responsive-lightbox/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS