CVE-2026-103897: Responsive Lightbox & Gallery <= 2.7.9 - Authenticated (Editor+) Stored Cross-Site Scripting via Comment Content 'title' Attribute
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Keep the plugin's 'Comments' lightbox setting disabled to prevent exploitation; it is disabled by default.
Responsive Lightbox & Gallery Comments lightbox = disabled
Event History
Frequently Asked Questions
Are sites using the default plugin configuration exposed?
No. Exploitation requires the plugin's Comments lightbox setting to be enabled, and that setting is disabled by default.
What must an attacker and victim do for the injected script to execute?
The attacker must be authenticated with editor-level access or higher and submit the malicious comment content. A moderator must approve that comment, then a visitor must click the affected image to open its lightbox.
What can be done while a fix is not available or cannot be applied?
Disable the Comments lightbox setting. Also review and remove or reject suspicious approved comments, particularly where editor-level or higher accounts may have submitted content.
How can administrators check for likely exposure?
Verify whether Comments lightbox is enabled and review approved comments associated with lightbox-enabled images. Sites without that setting enabled are not exploitable through the described path.