What the vulnerability does
01Description
The Envira Gallery Lite plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the REST API in versions up to and including 1.12.4. This is due to insufficient input sanitization in the update_gallery_data() function and improper output escaping in the gallery_init() function. The sanitize_config_values() function only sanitizes the justified_gallery_theme and justified_row_height parameters, but does not sanitize the arrows parameter. When the arrows value is output in the inline JavaScript configuration, it uses esc_attr() which is designed for HTML attribute contexts, not JavaScript contexts, allowing JavaScript expression injection. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Explanation of Vulnerability in Simple Terms
02Summary
Envira Gallery versions up to 1.12.4 contain a cross-site scripting (XSS) vulnerability that allows authenticated users to inject malicious scripts. The vulnerability affects the scope beyond the vulnerable component, potentially impacting other users and site functionality. Site administrators should update to a version newer than 1.12.4 to remediate this issue.
What an attacker can do
03Attacker Capabilities
Inject malicious scripts that execute in other users' browsers and affect site functionality.
Potential impact on your site
04Site Impact
Authenticated users can inject scripts affecting other visitors and site operations; user accounts may be compromised.
Conditions required to exploit
05Prerequisites
Attacker must have a user account with at least low-level privileges on the site.
Key dates
06Disclosure timeline
May 14, 2026
CVE published
May 14, 2026
Record updated