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

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2026-5361
CVSS 6.4 (Medium)
Publicly Published May 13, 2026
Last Updated May 14, 2026
Researchers Athiwat Tiprasaharn (Jitlada)
Itthidej Aramsri (Boeing777)

Description

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.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Envira Gallery – Image Photo Gallery, Albums, Video Gallery, Slideshows & More

Software Type Plugin
Software Slug envira-gallery-lite (view on wordpress.org)
Patched? Yes
Remediation Update to version 1.12.5, or a newer patched version
Affected Version
  • <= 1.12.4
Patched Version
  • 1.12.5

Recent vulnerabilities in Envira Gallery – Image Photo Gallery, Albums, Video Gallery, Slideshows & More

# Title CVE ID CVSS Researchers Date
1 Envira Gallery – Image Photo Gallery, Albums, Video Gallery, Slideshows & More <= 1.12.5 - Missing Authorization CVE-2026-54190 5.3 Tiago Ventura (perses) June 15, 2026
2 Envira Gallery for WordPress <= 1.12.3 - Authenticated (Author+) Stored Cross-Site Scripting via 'justified_gallery_theme' Parameter via REST API CVE-2026-1236 6.4 Athiwat Tiprasaharn (Jitlada), Itthidej Aramsri (Boeing777), Waris Damkham March 3, 2026
3 Gallery Plugin for WordPress – Envira Photo Gallery <= 1.12.0 - Missing Authorization to Authenticated (Author+) Multiple Gallery Actions CVE-2025-12377 4.3 Dmitrii Ignatyev November 12, 2025
4 Gallery Plugin for WordPress – Envira Photo Gallery <= 1.11.0 - Missing Authorization to Authenticated (Contributor+) Gallery Conversion CVE-2025-11448 4.3 Lucas Montes (NiRoX) November 7, 2025
5 Multiple Plugins <= (Various Versions) - Authenticated (Contributor+) Stored DOM-Based Cross-Site Scripting via FancyBox JavaScript Library CVE-2024-5020 6.4 Webbernaut December 3, 2024
6 Envira Photo Gallery <= 1.8.14 - Missing Authorization CVE-2024-43925 4.3 Rafie Muhammad August 26, 2024
7 Gallery Plugin for WordPress – Envira Photo Gallery <= 1.8.14 - Authenticated (Author+) Stored Cross-Site Scripting CVE-2024-3899 6.4 Dmitrii Ignatyev August 20, 2024
8 Envira Photo Gallery <= 1.8.7.3 - Cross-Site Request Forgery to Notice Dismissal CVE-2024-37095 4.3 Abdi Pranata June 20, 2024
9 Envira Gallery Lite <= 1.8.7.2 - Missing Authorization to Gallery Modification via envira_gallery_insert_images CVE-2023-6742 4.3 Nex Team January 8, 2024
10 Gallery Plugin for WordPress – Envira Photo Gallery <= 1.8.4.6 - Reflected Cross-Site Scripting CVE-2022-2190 6.1 ZhongFu Su October 10, 2022

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation