{"affected":[{"defaultStatus":"unaffected","product":"Dynamic Product Gallery for WooCommerce","source":"CNA: VulnCheck","vendor":"Steve Truman","versions":[{"lessThan":"3.6.2","status":"affected","version":"0","versionType":"semver"}]}],"cveId":"CVE-2026-135471","cwes":["CWE-79"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":5.1,"severity":"medium","source":"CNA: VulnCheck","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","version":"4.0"},{"score":5.4,"severity":"medium","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}],"modifiedAt":1795463996525,"publishedAt":1795463996525,"references":[{"source":"CNA: VulnCheck","tags":["release-notes","patch"],"url":"https://wordpress.org/plugins/woocommerce-dynamic-gallery/#developers"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/dynamic-product-gallery-for-woocommerce-before-3.6.2-stored-xss-via-shortcode"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://wordpress.org/plugins/woocommerce-dynamic-gallery/#developers"}],"revision":"4ed8f0a2852debf54d3f85d0240269390ba77dcb06a4a2409d81945a0ab22b17","sources":[{"modifiedAt":1795463996525,"name":"CNA: VulnCheck","retrievedAt":1795464556931,"url":"https://www.cve.org/CVERecord?id=CVE-2026-135471"}],"ssvc":null,"status":"published","title":"Dynamic Product Gallery for WooCommerce before 3.6.2 Stored XSS via Shortcode","updatedAt":1795464556931}