CVE-2026-116550: Photo Gallery, Sliders, Proofing and Themes <= 4.5.5 - Unauthenticated Stored Cross-Site Scripting via Comment Content via Smilie-to-Lightbox Caption
The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 4.5.5 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires the plugin's "What must the lightbox be applied to?" setting (thumbEffectContext) to be configured as "Try to apply to all images" or "Try to apply to all images that link to image files," which is not the shipping default, and also requires the attacker's comment to reach a publicly rendered state.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker does not need to be authenticated. They must be able to submit a comment that reaches a publicly rendered state.
Are default plugin settings affected?
The required lightbox setting is not the shipping default. Exploitation requires “What must the lightbox be applied to?” (thumbEffectContext) to be set to either “Try to apply to all images” or “Try to apply to all images that link to image files.”
What is the impact when exploitation succeeds?
Malicious script can be stored in comment content and execute in the browser of a user who accesses the injected page. The listed impact includes limited confidentiality and integrity effects, with no availability impact.
Which versions are affected?
All versions up to and including 4.5.5 are affected.