CVE-2026-135471
published medium CVSS 4.0 · 5.1Dynamic Product Gallery for WooCommerce before 3.6.2 Stored XSS via Shortcode
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Steve Truman | — | Dynamic Product Gallery for WooCommerce0 to < 3.6.2 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.4 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Steve Truman | Dynamic Product Gallery for WooCommerce | 0 to < 3.6.2 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2- https://wordpress.org/plugins/woocommerce-dynamic-gallery/#developers
- VulnCheck Advisory: Dynamic Product Gallery for WooCommerce before 3.6.2 Stored XSS via Shortcode https://www.vulncheck.com/advisories/dynamic-product-gallery-for-woocommerce-before-3.6.2-stored-xss-via-shortcode
Provider assertions
2VulnCheck · cna
Dynamic Product Gallery for WooCommerce before 3.6.2 Stored XSS via Shortcode
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1d186f2a0fec95e9729e33fdb8fc527426c126739821768d205fcbe5b6494499
- Ingested
- 28 Nov 2026, 03:19:30 UTC
- Source record
- Official CVE record