CVE-2026-5361: Envira Gallery <= 1.12.4 - Authenticated (Author+) Stored Cross-Site Scripting via 'arrows' Parameter
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 updategallerydata() function and improper output escaping in the galleryinit() function. The sanitizeconfigvalues() function only sanitizes the justifiedgallerytheme and justifiedrowheight parameters, but does not sanitize the arrows parameter. When the arrows value is output in the inline JavaScript configuration, it uses escattr() 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-5361?
CVE-2026-5361 is classified as a high severity vulnerability due to the potential for stored cross-site scripting attacks.
How do I fix CVE-2026-5361?
To fix CVE-2026-5361, you should update the Envira Gallery Lite plugin to version 1.12.5 or later.
What is the impact of CVE-2026-5361?
The impact of CVE-2026-5361 allows authenticated users to inject malicious scripts, which can execute in the context of other users.
Who is affected by CVE-2026-5361?
CVE-2026-5361 affects all users of Envira Gallery Lite versions 1.12.4 and earlier who have the Author+ role or higher.
What type of vulnerability is CVE-2026-5361?
CVE-2026-5361 is a stored cross-site scripting (XSS) vulnerability that arises from improper input validation.