CVE-2026-103897
Description
The Responsive Lightbox & Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 2.7.9 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with editor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the plugin's 'Comments' lightbox setting to be enabled (disabled by default), a moderator to approve the injected comment, and a site visitor to click the affected image to open the lightbox.
Affected WordPress components
-
Responsive Lightbox & Gallery Plugin · responsive-lightboxUp to and including 2.7.9View on WordPress.org
A confirmed match is backed by the plugin or theme slug. A possible match is based on the product name only and should be verified.
Affected products and versions
- dfactory Responsive Lightbox & Gallery — Up to and including 2.7.9
References
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/responsive-lightbox/tags/2.7.9/assets/glightbox/glightbox.js#L1489
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/responsive-lightbox/tags/2.7.9/includes/class-frontend.php#L1981
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/responsive-lightbox/tags/2.7.9/includes/class-frontend.php#L409
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/responsive-lightbox/tags/2.7.9/includes/class-frontend.php#L410
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/responsive-lightbox/tags/2.7.9/includes/class-frontend.php#L488
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/changeset/3694843/responsive-lightbox/trunk/includes/class-frontend.php
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/changeset/3729072
- www.wordfence.com https://www.wordfence.com/threat-intel/vulnerabilities/id/5bb2a893-d254-42bc-8b50-2a88306dbbd7?source=cve
- nvd.nist.gov Official NVD record