CVE-2026-5361: Envira Gallery <= 1.12.4 - Authenticated (Author+) Stored Cross-Site Scripting via 'arrows' Parameter

Published May 14, 2026
·
Updated

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

1 affected component
Envira Gallery Envira Gallery Lite<=1.12.4

Event History

May 14, 2026
CVE Published
via MITRE·03:27 AM
Data Sourced
via MITRE·03:27 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203