CVE-2026-5361: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in smub Envira Gallery – Image Photo Gallery, Albums, Video Gallery, Slideshows & More
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.
AI Analysis
Technical Summary
The Envira Gallery Lite plugin for WordPress suffers from a stored XSS vulnerability due to inadequate sanitization of the 'arrows' parameter in the update_gallery_data() function and improper escaping in the gallery_init() function. While some parameters are sanitized, the 'arrows' parameter is not, and its value is output in inline JavaScript using esc_attr(), which is insufficient for JavaScript contexts. This allows authenticated attackers with Author-level privileges or higher to inject malicious scripts via the REST API, which execute when users access the injected gallery pages.
Potential Impact
An attacker with Author-level or higher privileges can inject arbitrary JavaScript code into gallery pages, potentially leading to session hijacking, defacement, or other malicious actions executed in the context of users viewing the compromised pages. The vulnerability does not affect availability but impacts confidentiality and integrity. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict Author-level access to trusted users only to reduce risk. Avoid exposing the vulnerable plugin on publicly accessible sites or disable the plugin if possible. Monitor for vendor updates regarding patches or official mitigations.
CVE-2026-5361: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in smub Envira Gallery – Image Photo Gallery, Albums, Video Gallery, Slideshows & More
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.
CVSS v3.1
Score 6.4medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Envira Gallery Lite plugin for WordPress suffers from a stored XSS vulnerability due to inadequate sanitization of the 'arrows' parameter in the update_gallery_data() function and improper escaping in the gallery_init() function. While some parameters are sanitized, the 'arrows' parameter is not, and its value is output in inline JavaScript using esc_attr(), which is insufficient for JavaScript contexts. This allows authenticated attackers with Author-level privileges or higher to inject malicious scripts via the REST API, which execute when users access the injected gallery pages.
Potential Impact
An attacker with Author-level or higher privileges can inject arbitrary JavaScript code into gallery pages, potentially leading to session hijacking, defacement, or other malicious actions executed in the context of users viewing the compromised pages. The vulnerability does not affect availability but impacts confidentiality and integrity. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict Author-level access to trusted users only to reduce risk. Avoid exposing the vulnerable plugin on publicly accessible sites or disable the plugin if possible. Monitor for vendor updates regarding patches or official mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-04-01T17:20:59.284Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a0554cfcbff5d86106db25c
Added to database: 05/14/2026, 04:51:27 UTC
Last enriched: 05/14/2026, 05:06:31 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 84
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.