{"id":"CVE-2026-135471","aliases":["CVE-2026-135471"],"related":[],"kind":"vulnerability","state":"published","title":"Dynamic Product Gallery for WooCommerce before 3.6.2 Stored XSS via Shortcode","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-23T19:59:56.525Z","modified":"2026-11-28T03:13:50.861Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":5.1,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.6.2","status":"affected"}],"vendor":"Steve Truman","product":"Dynamic Product Gallery for WooCommerce","source":"cvelist"}],"references":[{"url":"https://wordpress.org/plugins/woocommerce-dynamic-gallery/#developers","tags":["patch","release-notes"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/dynamic-product-gallery-for-woocommerce-before-3.6.2-stored-xss-via-shortcode","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["buiih"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-28T03:13:41.273Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-135471","url":"https://www.cve.org/CVERecord?id=CVE-2026-135471","licence":"CVE Terms of Use","modified":"2026-11-28T03:13:50.861Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-135471","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-135471","licence":"Public domain","modified":"2026-11-23T20:18:04.610Z"}],"updatedAt":"2026-11-28T03:27:09.780Z","epss":{"score":0.00243,"percentile":0.16586,"date":"2026-12-01T12:00:22.000Z"}}