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

Sat, 28 Nov 2026 04:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 24 Nov 2026 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Steve Truman
Steve Truman dynamic Product Gallery For Woocommerce
Wordpress-extensions
Wordpress-extensions dynamic Product Gallery For Woocommerce
Vendors & Products Steve Truman
Steve Truman dynamic Product Gallery For Woocommerce
Wordpress-extensions
Wordpress-extensions dynamic Product Gallery For Woocommerce

Mon, 23 Nov 2026 20:15:00 +0000

Type Values Removed Values Added
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.
Title Dynamic Product Gallery for WooCommerce before 3.6.2 Stored XSS via Shortcode
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published: 2026-11-23T19:59:56.525Z

Updated: 2026-11-28T03:13:50.861Z

Reserved: 2026-11-23T19:39:58.332Z

Link: CVE-2026-135471

cve-icon Vulnrichment

Updated: 2026-11-28T03:13:46.591Z

cve-icon NVD

Status : Received

Published: 2026-11-23T20:18:04.610

Modified: 2026-11-28T04:17:03.140

Link: CVE-2026-135471

cve-icon Redhat

No data.