Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Contributor-level account
-
DeliverySubmit post with malicious product_id in gallery shortcode
-
ExploitPayload stored unescaped in inline init script
-
ExecutionAdmin/editor previews or approves the post
-
ImpactJavaScript executes in privileged browser session
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 | Requires the Dynamic Product Gallery for WooCommerce plugin (version before 3.6.2) installed and active on a WordPress/WooCommerce site, plus an authenticated account with Contributor-level privileges or higher (PR:L) that can author content containing the [wc_product_dgallery] or [wc_product_dynamic_gallery] shortcode with an attacker-controlled product_id attribute. Exploitation is further limited by required user interaction (UI:P): the payload only executes when another user - typically an editor or administrator previewing or approving the submission, or any visitor viewing the published post - renders the affected page. Limiting factors that reduce real-world risk: sites that do not permit contributor/author self-registration, workflows where posts are not previewed before deletion, and any site not running the vulnerable plugin version are not exposed. |
| Impact | This is a stored cross-site scripting flaw (CWE-79) carrying a medium CVSS 4.0 base score of 5.1, and the signals are internally consistent rather than conflicting. The vector CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P tells the real story: network-reachable and low-complexity, but gated by PR:L (the attacker must already hold at least a Contributor-level WordPress account) and UI:P (a separate privileged user must view, preview, or approve the malicious post for the payload to fire). Impact is confined to the subsequent-system metrics SC:L/SI:L with no impact on the vulnerable system itself (VC:N/VI:N/VA:N), which matches a classic stored-XSS blast radius - script execution in a victim's browser session rather than server compromise. No EPSS score, KEV listing, or confirmed exploit was supplied in the input, and the vuln.today decision label is 'this_month' (not act_now/emergency), so this should be prioritized as routine-but-near-term patching, not a drop-everything emergency. The practical risk is bounded by the Contributor-account prerequisite: on sites that freely grant contributor/author registration (common on multi-author blogs and community stores) the barrier is low and the escalation-to-admin potential is meaningful, whereas single-author stores face little exposure. No key data is contradictory here; the main gap is the absence of exploitation-probability and in-the-wild telemetry. |
| Exploit ScenarioDerived | An attacker who holds a Contributor account on a WooCommerce store running this plugin authors a post containing a [wc_product_dgallery] or [wc_product_dynamic_gallery] shortcode and sets product_id to a value such as 342;alert(document.domain)//, which breaks out of the inline JavaScript variable declaration. When an editor or administrator previews the submission to review or approve it, the injected script executes in their authenticated browser session, enabling session/cookie theft or admin-level actions. No confirmed public exploit was provided in the input, though the advisory description itself includes a working sample payload. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 23, 2026
Stored cross-site scripting in the Dynamic Product Gallery for WooCommerce plugin (versions before 3.6.2) lets an authenticated user with Contributor-level access or higher plant arbitrary JavaScript inside a post through the product_id attribute of the [wc_product_dgallery] and [wc_product_dynamic_gallery] shortcodes. The payload is stored in the post content and executes in the browser of anyone who renders it - most consequentially an editor or administrator who previews or approves the submission, granting script execution with that higher-privileged user's session context in the WordPress admin area. The issue carries a CVSS 4.0 base score of 5.1 (CVSS 3.1 equivalent AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N); no public exploit code has been identified at time of analysis and the plugin has not appeared in CISA KEV.
RemediationAI
Update the Dynamic Product Gallery for WooCommerce plugin to version 3.6.2 or later, which is the fixed release per the vendor changelog at https://wordpress.org/plugins/woocommerce-dynamic-gallery/#developers; the vulnerability advisory is at https://www.vulncheck.com/advisories/dynamic-product-gallery-for-woocommerce-before-3.6.2-stored-xss-via-shortcode. If updating must be deferred, reduce exposure by restricting who can hold Contributor-level or higher roles (disabling open contributor self-registration and auditing existing accounts), since such an account is a prerequisite for planting the payload, and by reviewing or removing existing posts that embed [wc_product_dgallery] or [wc_product_dynamic_gallery] with an unexpected product_id value before they are previewed or approved by an administrator. Note that these are exposure-reduction measures only and do not remove the vulnerable code path; updating to 3.6.2 is the complete fix, and no vendor-released patch alternative or configuration toggle is described in the available sources.
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 plugin registers two WooCommerce shortcodes, [wc_product_dgallery] and [wc_product_dynamic_gallery], whose product_id attribute is parsed by parse_shortcode_product_dynamic_gallery(). That function sanitises the value with esc_attr(), which is the correct encoder for HTML attribute context but is the wrong encoder when the same value is later emitted inside a JavaScript block. get_gallery_main() reuses the value when printing the a3-wc-dynamic-gallery-init-inline-script inline script, placing it directly into a JavaScript variable name rather than into a quoted string. A value such as 342;alert(document.domain)// therefore terminates the declaration and runs attacker-controlled statements in the page context. This is a classic context-confusion variant of CWE-79: HTML-attribute escaping applied to data that reaches a script sink without JavaScript-safe encoding (no wp_json_encode or esc_js). The vulnerable code path is only reachable when the plugin is installed and active on a WordPress/WooCommerce site and a Contributor-or-higher account can author content containing the shortcode, and the script only fires when another user (an editor or administrator previewing or approving, or a visitor viewing the published post) loads the rendered page, which is why the assessed vector requires user interaction (UI:R/UI:P) and scores changed scope.
Know when Woocommerce 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Contributor account needed so PR:L; a victim must view the stored payload so UI:R; stored XSS crosses into the victim's browser context so S:C with C:L/I:L and no availability impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
Dynamic Product Gallery for WooCommerce before 3.6.2 contains a stored cross-site scripting vulnerability that allows authenticated attackers with Contributor-level access or above to inject arbitrary JavaScript via the product_id attribute of the [wc_product_dgallery] and [wc_product_dynamic_gallery] shortcodes. The parse_shortcode_product_dynamic_gallery() function passes product_id only through esc_attr(), and get_gallery_main() prints it unescaped into the a3-wc-dynamic-gallery-init-inline-script inline script as part of a JavaScript variable name, so a value such as 342;alert(document.domain)// breaks out of the declaration. The injected script executes in the browser of any user who views the post, including editors or administrators who preview or approve it.
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.
More in Woocommerce
View allThe WooCommerce plugin through 3.x for WordPress has a Directory Traversal Vulnerability via a /wp-content/plugins/wooco
Unauthenticated remote code execution in Print Invoice & Delivery Notes for WooCommerce through 5.8.0 lets remote attack
Unauthenticated arbitrary file upload in Addify's Request a Quote for WooCommerce plugin, affecting all versions up to a
The WooCommerce Help Scout WordPress plugin before 2.9.1 (https://woocommerce.com/products/woocommerce-help-scout/) allo
WooCommerce 7.1.0 contains a remote code execution vulnerability that allows attackers to execute arbitrary PHP code by
Blind SQL injection in the WBW Product Filter WordPress plugin (woo-product-filter) through 3.4.6 lets remote attackers
Unauthenticated path traversal in OrderConvo (the "Admin and Customer Messages After Order for WooCommerce" plugin), aff
Unauthenticated retrieval of stored WooCommerce REST API credentials from the Chargely Free Subscriptions For Woocommern
Unauthenticated remote attackers can seize control of the payment configuration on WordPress stores running the Fundiin
Stored cross-site scripting in Checkout Files Upload for WooCommerce 2.4.0 lets an unauthenticated shopper upload an HTM
Cross-site request forgery in the Komfortkasse for WooCommerce WordPress plugin before 1.4.9 can let an unauthenticated
Ultimate WooCommerce Gift Cards 3.0.2 is affected by a file upload vulnerability in the Custom GiftCard Template that ca
EUVD-2026-133405
NVD
CVE.org
GitHub PoC
Exploit-DB