{"id":"CVE-2026-135471","aliases":[],"title":"Dynamic Product Gallery for WooCommerce before 3.6.2 Stored XSS via Shortcode","originalDescription":"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.","severity":{"cvss":5.1,"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","label":"medium"},"exploitation":{"kev":null,"epss":{"score":0.00235,"percentile":0.08688},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Dynamic Product Gallery for WooCommerce","range":">=0, <3.6.2","fixed":"3.6.2"}],"references":[{"url":"https://wordpress.org/plugins/woocommerce-dynamic-gallery/#developers","type":"release-notes"},{"url":"https://www.vulncheck.com/advisories/dynamic-product-gallery-for-woocommerce-before-3.6.2-stored-xss-via-shortcode","type":"third-party-advisory"}],"sources":[{"name":"nvd","at":"2026-11-28T04:33:02.465Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135471","license":"NVD terms of use","firstSeenAt":"2026-11-23T20:27:07.209Z"},{"name":"cvelistV5","at":"2026-11-29T08:34:16.463Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-135471","license":"CVE Terms of Use","firstSeenAt":"2026-11-23T20:24:18.674Z"}],"firstSeenAt":"2026-11-23T20:24:18.674Z","publishedAt":"2026-11-23T19:59:56.525Z","modifiedAt":"2026-11-28T04:17:03.140Z"}