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

Published Nov 23, 2026
·
Updated

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 productid attribute of the [wcproductdgallery] and [wcproductdynamicgallery] shortcodes. The parseshortcodeproductdynamicgallery() function passes productid only through escattr(), and getgallerymain() 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.

Affected Software

1 affected component
a3rev Dynamic Product Gallery for WooCommerce<3.6.2

Event History

Nov 23, 2026
CVE Published
via MITRE·07:59 PM
Data Sourced
via MITRE·07:59 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this vulnerability?

An authenticated WordPress user with Contributor-level access or higher can exploit it by creating or modifying content containing a vulnerable gallery shortcode.

2

What user interaction is required for the injected code to run?

A user must view the affected post. The stored JavaScript can execute in the browser of users who view, preview, or approve the post, including editors and administrators.

3

Which shortcode input is vulnerable?

The product_id attribute of the [wc_product_dgallery] and [wc_product_dynamic_gallery] shortcodes is vulnerable. A crafted value can break out of the inline JavaScript variable declaration.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203