CVE-2026-135471 - Dynamic Product Gallery for WooCommerce before 3.6.2 Stored XSS via Shortcode
Vulnerability · Reported by NVD · · CWE-79
- Severity
- Medium Risk score 51/100
- CVSS
- 5.1 v4.0 · from NVD
- Exploit chance (EPSS)
- 0.24% Higher than 9% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
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.
How this vulnerability can be exploited
This is a cross-site scripting (XSS) flaw (CWE-79). An attacker can exploit this vulnerability remotely over the network, with a low-privileged account. Attack complexity is low, so no special conditions are needed.
Is it being exploited?
The EPSS model estimates a 0.24% chance this CVE will be exploited in the next 30 days, which is low and higher than 9% of all published CVEs.
Patch priority and what to do
Patch during routine updates. Lower severity, but keep it on your list. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.
CVSS vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S
Tags
CVE-2026-135471
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-135471 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.