# CVE-2026-135471: Dynamic Product Gallery for WooCommerce before 3.6.2 Stored XSS via Shortcode

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2026-11-23T19:59:56.525Z
- Modified: 2026-11-28T03:13:50.861Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- Steve Truman Dynamic Product Gallery for WooCommerce: before 3.6.2

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `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`
- VulnCheck: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://wordpress.org/plugins/woocommerce-dynamic-gallery/#developers> (patch, release-notes)
- <https://www.vulncheck.com/advisories/dynamic-product-gallery-for-woocommerce-before-3.6.2-stored-xss-via-shortcode> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-135471](https://www.cve.org/CVERecord?id=CVE-2026-135471), CVE Terms of Use, modified 2026-11-28
- NVD: [CVE-2026-135471](https://nvd.nist.gov/vuln/detail/CVE-2026-135471), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-135471 · Whole record: https://cve.day/CVE-2026-135471.json · Rebuilt by cve.day 2026-11-28T03:27:09.780Z
