Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-135471: medium-severity vulnerability (CVSS 5.1) in Steve Truman Dynamic Product Gallery for WooCommerce.
What happened
Original description from the source: 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.
Why it matters
Medium severity, CVSS 5.1.
Affected products and versions
Steve Truman Dynamic Product Gallery for WooCommerce < 3.6.2
| Product | Versions | Fixed in |
|---|---|---|
| Steve Truman Dynamic Product Gallery for WooCommerce | < 3.6.2 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://wordpress.org/plugins/woocommerce-dynamic-gallery/#developers — CVE Program
- https://www.vulncheck.com/advisories/dynamic-product-gallery-for-woocommerce-before-3.6.2-stored-xss-via-shortcode — CVE Program
Weaknesses (CWE): CWE-79
Relevant change history
Published
Preliminary advisory published.