CVE-2026-126011 — Smub Photo Gallery, Sliders, Proofing And Themes – NextGEN Gallery
HIGHCVE-2026-126011 is a high-severity (CVSS 7.2) Cross-site Scripting (XSS) vulnerability in smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery. Versions up to 4.5.6 are affected; the records list no fixed version yet, so check the vendor advisory below.
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,…
Description
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.6 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. This requires the site administrator to have configured the Thickbox lightbox effect with the "Try to apply to all images" context (thumbEffectContext=all_images), and exploitation additionally depends on an administrator approving the attacker's initial comment so that subsequent comments from that author are auto-approved.
Affected Products
Photo Gallery, Sliders, Proofing and Themes – NextGEN GallerysmubDetection & mitigation playbook
Vendor / applianceDetect
Inventory every smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery deployment and check each version against the affected-products list above.
Remediation status
The records we use list no fixed version for CVE-2026-126011 (versions up to 4.5.6 are affected). Check the smub Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery advisory for a patched release, and apply the workarounds below until you can upgrade.
Mitigate without a patch
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page. Alongside that, restrict the management interface to trusted networks and apply the vendor's recommended configuration mitigations.
Frequently Asked Questions
Is CVE-2026-126011 being exploited in your environment?
Detect and block the exploit chain at execution, on systems you cannot patch yet.