CVE-2026-116563: Photo Gallery, Sliders, Proofing and Themes <= 4.5.4 - Unauthenticated Stored DOM-Based Cross-Site Scripting via Comment `title` Attribute via Shutter Lightbox innerHTML
The Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery plugin for WordPress is vulnerable to Stored DOM-Based Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 4.5.4 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 site to have Shutter or Shutter Reloaded selected as the active lightbox, and the injected comment must be approved through WordPress's standard moderation workflow before the payload is rendered to other visitors.
Affected Software
Event History
Frequently Asked Questions
Which sites are exposed to this issue?
Sites using the NextGEN Gallery plugin at version 4.5.4 or earlier are affected only when Shutter or Shutter Reloaded is configured as the active lightbox. The vulnerable content is rendered through the lightbox when visitors access an injected page.
What does an attacker need to do to exploit it?
An attacker does not need authentication, but must submit a crafted value through the comment parameter. The submitted comment must then be approved through WordPress's normal comment-moderation workflow before its script payload can execute for other visitors.
Does this affect sites that do not approve comments?
The described exploitation path requires approval of the injected comment before the payload is rendered to other visitors. Sites that prevent untrusted comments from being approved block that stated requirement.
What can be done while a fix is not available?
Avoid using Shutter or Shutter Reloaded as the active lightbox, and do not approve untrusted comments. Review pending and approved comments for suspicious content submitted through the comment parameter.