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.
Published: 2026-03-04
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting
Action: Apply Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Wed, 04 Mar 2026 22:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 04 Mar 2026 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Enviragallery
Enviragallery photo Gallery
Wordpress
Wordpress wordpress
Vendors & Products Enviragallery
Enviragallery photo Gallery
Wordpress
Wordpress wordpress

Wed, 04 Mar 2026 08:30:00 +0000

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'}


Subscriptions

Enviragallery Photo Gallery
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T17:18:43.927Z

Reserved: 2026-01-20T16:37:15.337Z

Link: CVE-2026-1236

cve-icon Vulnrichment

Updated: 2026-03-04T21:27:54.390Z

cve-icon NVD

Status : Deferred

Published: 2026-03-04T09:15:55.293

Modified: 2026-04-22T21:26:58.303

Link: CVE-2026-1236

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-15T20:15:13Z

Weaknesses