Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 72%

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

0
Medium
VulnerabilityCVE-2026-5361cvecve-2026-5361cwe-79
Published: 05/14/2026 (05/14/2026, 03:27:15 UTC)
Source: CVE Database V5
Vendor/Project: smub
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Affected software

Affected versions
=0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/14/2026, 05:06:31 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses