CVE-2026-1236

Envira Gallery for WordPress <= 1.12.3 - Authenticated (Author+) Stored Cross-Site Scripting via 'justified_gallery_theme' Parameter via REST API

Published Mar 4, 2026 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
Description
The Envira Gallery for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'justified_gallery_theme' parameter in all versions up to, and including, 1.12.3 due to insufficient input sanitization and output escaping. 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.

Analysis

AI-generated

Technical impact

The vulnerability allows an authenticated user with Author or higher privileges to inject arbitrary JavaScript into the "justified_gallery_theme" parameter of the plugin. Because the input is not sanitized and output is not escaped, the script is stored and executed whenever a page containing the gallery is viewed. This can lead to theft of cookies, session hijacking, defacement, or broader compromise of other visitors’ browsers. The weakness is a classic stored cross‑site scripting flaw (CWE‑79).

Affected Systems

The affected software is the Envira Gallery plugin for WordPress, produced by smub. All releases up to and including version 1.12.3 are vulnerable. WordPress sites running any of these plugin versions are at risk.

Risk and Exploitability

The CVSS score of 6.4 indicates moderate severity. The EPSS score of less than 1% suggests a very low exploitation probability, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires the attacker to be an authenticated Author or higher on the affected WordPress site; they must submit a gallery configuration that includes a malicious "justified_gallery_theme" value, which is then stored in the database and rendered in subsequent page loads. The attack vector is local to the web application but can have remote effects on unauthenticated visitors who view the injected content.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Envira Gallery plugin to the latest version (>=1.12.4) which removes the insecure handling of the "justified_gallery_theme" parameter.
  • After updating, delete or disable any galleries that have been configured by users to ensure that no malicious content remains stored in the database.
  • Implement a Content Security Policy or use a security plugin to block inline script execution, reducing risk until the plugin is fully patched.

Generated by OpenCVE AI on April 15, 2026 at 20:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Enviragallery
Enviragallery photo Gallery
Wordpress
Wordpress wordpress
Vendors & Products Enviragallery
Enviragallery photo Gallery
Wordpress
Wordpress wordpress
Type Values Removed Values Added
Description The Envira Gallery for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'justified_gallery_theme' parameter in all versions up to, and including, 1.12.3 due to insufficient input sanitization and output escaping. 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.
Title Envira Gallery for WordPress <= 1.12.3 - Authenticated (Author+) Stored Cross-Site Scripting via 'justified_gallery_theme' Parameter via REST API
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 8, 2026, 5:18 PM
Reserved
Jan 20, 2026, 4:37 PM
Status
Deferred
Published
Mar 4, 2026, 9:15 AM
Modified
Jun 17, 2026, 10:15 AM