Stored Cross-Site Scripting Vulnerability in Dynamic Product Gallery for WooCommerce
CVE-2026-135471
What is CVE-2026-135471?
The Dynamic Product Gallery for WooCommerce is susceptible to a stored cross-site scripting (XSS) vulnerability that can be exploited by authenticated attackers with Contributor-level access or higher. The vulnerability arises from improper handling of the product_id attribute in the [wc_product_dgallery] and [wc_product_dynamic_gallery] shortcodes. Due to the lack of proper escaping before the inclusion of user-supplied input into a JavaScript context, an attacker can inject arbitrary JavaScript code that executes in the context of any user's browser who visits the affected posts. This poses significant risks, especially for site administrators and editors who preview or approve the content.
Affected Version(s)
Dynamic Product Gallery for WooCommerce 0 < 3.6.2
