CVE-2025-57966 Overview
CVE-2025-57966 is a stored cross-site scripting (XSS) vulnerability in the GhozyLab Gallery Lightbox WordPress plugin (gallery-lightbox-slider). The flaw affects all versions up to and including 1.0.0.41 and is tracked under [CWE-79]: Improper Neutralization of Input During Web Page Generation. Authenticated users with low-level privileges can inject persistent JavaScript payloads that execute in the browser of any visitor rendering the affected page. The vulnerability was published to the National Vulnerability Database (NVD) on September 22, 2025.
Critical Impact
Attackers with low-privilege accounts can persist malicious scripts that hijack sessions, redirect visitors, or perform administrative actions on behalf of site users.
Affected Products
- GhozyLab Gallery Lightbox WordPress plugin (gallery-lightbox-slider)
- All plugin versions up to and including 1.0.0.41
- WordPress sites where the plugin is installed and active
Discovery Timeline
- 2025-09-22 - CVE-2025-57966 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-57966
Vulnerability Analysis
The vulnerability is a stored XSS flaw in the Gallery Lightbox plugin's input handling paths. The plugin fails to neutralize user-supplied input before rendering it inside generated web pages. An authenticated attacker submits crafted input through a plugin field, and the server stores that input without escaping HTML control characters or filtering script constructs. When any user later loads a page that renders the stored value, the browser parses and executes the injected JavaScript in the site's origin. User interaction is required for the payload to trigger, and the scope is changed, meaning the impact extends beyond the vulnerable component to other browser-trusted resources.
Root Cause
The root cause is missing output encoding and insufficient input sanitization within the plugin's page generation logic. Data supplied by contributors or similar low-privilege roles is written to persistent storage and later reflected into HTML contexts without applying WordPress escaping functions such as esc_html(), esc_attr(), or wp_kses(). This maps directly to [CWE-79].
Attack Vector
Exploitation is network-based and requires an authenticated account with low privileges plus victim interaction. An attacker logs in, submits a gallery or slider field containing an HTML or JavaScript payload, and waits for another user to visit an affected page. Because the payload runs in the victim's browser session, it can steal authentication cookies, hijack administrator sessions, alter DOM content, or pivot to further WordPress administrative actions via cross-site request forgery. Refer to the Patchstack XSS Vulnerability Advisory for advisory-level detail.
Detection Methods for CVE-2025-57966
Indicators of Compromise
- Gallery, slider, or caption fields containing <script>, onerror=, onload=, or javascript: constructs stored in the wp_posts or wp_postmeta tables.
- Unexpected outbound requests from browsers rendering gallery pages to attacker-controlled domains.
- New or modified administrator accounts created shortly after a low-privilege user edits gallery content.
Detection Strategies
- Review plugin-related database entries for HTML tags and JavaScript event handlers in fields that should contain only text.
- Enable Content Security Policy (CSP) reporting to capture inline script violations on pages rendering gallery content.
- Correlate authenticated low-privilege editing activity with subsequent visits by administrators to the same content.
Monitoring Recommendations
- Monitor WordPress audit logs for post and meta updates originating from contributor and author roles that touch gallery shortcodes.
- Alert on browser console errors and CSP violations tied to gallery pages.
- Track plugin version inventory across WordPress deployments to flag hosts still running gallery-lightbox-slider<= 1.0.0.41.
How to Mitigate CVE-2025-57966
Immediate Actions Required
- Deactivate the Gallery Lightbox plugin on all WordPress sites running version 1.0.0.41 or earlier until a fixed release is confirmed.
- Audit stored gallery content for injected script payloads and remove any malicious entries.
- Rotate credentials and session tokens for administrators who may have loaded affected pages.
Patch Information
No fixed version is listed in the NVD record at publication. Consult the Patchstack XSS Vulnerability Advisory for the current patch status and vendor guidance. Apply the vendor update as soon as a version above 1.0.0.41 becomes available.
Workarounds
- Restrict contributor and author role assignments to trusted users only, since exploitation requires an authenticated account.
- Deploy a web application firewall (WAF) rule to strip or block script tags and JavaScript event handlers submitted to plugin endpoints.
- Enforce a strict Content Security Policy that disallows inline scripts on pages that render gallery content.
# Example: temporarily disable the vulnerable plugin via WP-CLI
wp plugin deactivate gallery-lightbox-slider
wp plugin status gallery-lightbox-slider
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

