{"id":"CVE-2026-116563","kind":"vulnerability","aliases":["CVE-2026-116563"],"related":[],"title":"NextGEN Gallery WordPress plugin: stored XSS via comment parameter","description":"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.","summary":"Versions up to and including 4.5.4 of the NextGEN Gallery WordPress plugin fail to sanitize the 'comment' parameter, enabling stored DOM-based cross-site scripting. An unauthenticated attacker can plant a script that runs in the browser of visitors who open the affected page, once an administrator approves the comment.","severity":"medium","cvss":5.4,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["nextgen-gallery","package","self-hosted","wordpress"],"not_affected_if":["comments-moderated","default-config","lightbox-not-shutter"],"how_to_check":"- Check the installed version of the plugin in the WordPress admin plugin list, or `wp plugin get nextgen-gallery --field=version` if WP-CLI is available.\n- Check whether the active lightbox is Shutter or Shutter Reloaded in the NextGEN Gallery settings.","fix":"- NextGEN Gallery: unknown (sources do not state a fixed version).","status":"open","published_at":"2026-10-31T06:16:32+00:00","first_seen_at":"2026-10-31T06:33:50+00:00","triaged_at":"2026-10-31T06:34:19+00:00","updated_at":"2026-10-31T06:34:19+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-10-31T06:34:19Z","model":"claude-haiku-5-5","output":{"fix":"- NextGEN Gallery: unknown (sources do not state a fixed version).","reach":"internet","title":"NextGEN Gallery WordPress plugin: stored XSS via comment parameter","impact":"medium","summary":"Versions up to and including 4.5.4 of the NextGEN Gallery WordPress plugin fail to sanitize the 'comment' parameter, enabling stored DOM-based cross-site scripting. An unauthenticated attacker can plant a script that runs in the browser of visitors who open the affected page, once an administrator approves the comment.","audience":"businesses","category":"package","nicknames":[],"who_cares":["wordpress","nextgen-gallery","self-hosted"],"confidence":0.8,"fix_status":"unknown","needs_auth":"no","worst_case":"script runs in visitors' browsers, session data can be stolen","analyst_note":"","how_to_check":"- Check the installed version of the plugin in the WordPress admin plugin list, or `wp plugin get nextgen-gallery --field=version` if WP-CLI is available.\n- Check whether the active lightbox is Shutter or Shutter Reloaded in the NextGEN Gallery settings.","plain_action":"","needs_analyst":false,"not_affected_if":["lightbox-not-shutter","default-config","comments-moderated"],"who_is_affected":"Sites running NextGEN Gallery up to and including 4.5.4 with Shutter or Shutter Reloaded set as the active lightbox. The attacker's script must also pass the standard comment moderation step before it is rendered to other visitors, so sites that moderate all comments carry lower risk. Sites without the plugin or with a different lightbox are not exposed.","user_interaction":"yes","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.00074,"input_tokens":4270,"output_tokens":625,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-116563':12A,15A '-2026':11A,14A '4.5.4':29B,110C 'access':139C 'activ':156C 'administr':72B 'affect':68B 'approv':73B,164C 'arbitrari':128C 'attack':53B,125C 'base':46B,94C 'browser':62B 'comment':8A,40B,75B,101C,161C 'cross':48B,96C 'cross-sit':47B,95C 'cve':10A,13A 'dom':45B,93C 'dom-bas':44B,92C 'due':111C 'enabl':42B 'escap':118C 'execut':135C 'exploit':143C 'fail':36B 'galleri':2A,18B,33B,78C,84C 'host':22B 'includ':28B,109C 'inject':127C,141C,160C 'input':114C 'insuffici':113C 'lightbox':157C 'make':120C 'moder':169C 'must':162C 'nextgen':1A,17B,32B,83C 'nextgen-galleri':16B 'open':66B 'output':117C 'packag':19B 'page':69B,132C,142C 'paramet':9A,41B,102C 'payload':173C 'photo':77C 'plant':55B 'plugin':4A,35B,85C 'possibl':122C 'proof':80C 'reload':152C 'render':175C 'requir':144C 'run':59B 'sanit':38B,115C 'script':50B,57B,98C,130C 'select':153C 'self':21B 'self-host':20B 'shutter':149C,151C 'site':49B,97C,146C 'slider':79C 'standard':168C 'store':5A,43B,91C 'theme':82C 'unauthent':52B,124C 'user':138C 'version':24B,105C 'via':7A,99C 'visitor':64B,178C 'vulner':89C 'web':129C 'whenev':136C 'wordpress':3A,23B,34B,87C,166C 'workflow':170C 'xss':6A","nicknames":[],"mitigations":[],"who_affected":"Sites running NextGEN Gallery up to and including 4.5.4 with Shutter or Shutter Reloaded set as the active lightbox. The attacker's script must also pass the standard comment moderation step before it is rendered to other visitors, so sites that moderate all comments carry lower risk. Sites without the plugin or with a different lightbox are not exposed.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"businesses","plain_action":null,"first_public_at":"2026-10-31T06:16:32+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","cvss_by":"security@wordfence.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-116563","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116563","severity":null,"published_at":"2026-10-31T06:16:32+00:00","modified_at":"2026-10-31T06:16:32+00:00","first_seen_at":"2026-10-31T06:33:50+00:00","fetched_at":"2026-10-31T06:33:50+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}