What is CVE-2026-135471?
CVE-2026-135471 is a medium-severity vulnerability in Steve Truman Dynamic Product Gallery for WooCommerce, published on 23 Nov 2026.
Official description
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.
Weakness: CWE-79
How severe is CVE-2026-135471?
CVE-2026-135471 scores 5.1 out of 10 under CVSS 4.0, which is medium severity. It was scored by VulnCheck.
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- Low
- User interaction
- Passive
- Confidentiality
- None
- Integrity
- None
- Availability
- None
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
Which versions are affected by CVE-2026-135471?
How do I fix CVE-2026-135471?
Upgrade Steve Truman Dynamic Product Gallery for WooCommerce to 3.6.2 or later. The advisory says that version fixes it.
Is CVE-2026-135471 being exploited?
There is no known exploitation of CVE-2026-135471 in the wild and no public exploit code.
Sources
Also known as GHSA-f8hf-h7jm-pv99.