CVE-2026-135471

published 23 Nov 2026 · updated 23 Nov 2026

Dynamic Product Gallery for WooCommerce before 3.6.2 Stored XSS via Shortcode

5.4MediumCVSS 5.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.6.2.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Steve Truman<3.6.23.6.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-135471 severity on Zeptric[![CVE-2026-135471](https://zeptric.io/badge/cve/CVE-2026-135471.svg)](https://zeptric.io/cve/CVE-2026-135471)