CVE-2026-135471
Received Received - Intake

Stored XSS in Dynamic Product Gallery for WooCommerce

Vulnerability report for CVE-2026-135471, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-23

Last updated on: 2026-11-23

Assigner: 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-23
Last Modified
2026-11-23
Generated
2026-11-23
AI Q&A
2026-11-23
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
Steve Truman Dynamic Product Gallery for WooCommerce From 0 (inc) to 3.6.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a stored cross-site scripting (XSS) vulnerability in the Dynamic Product Gallery for WooCommerce plugin before version 3.6.2. Authenticated attackers with Contributor-level access or higher can inject malicious JavaScript via the product_id attribute in specific shortcodes. The vulnerability occurs because the product_id is sanitized with esc_attr() but later printed unescaped into a JavaScript variable, allowing attackers to break out of the declaration and execute arbitrary code.

Detection Guidance

Check installed versions of the Dynamic Product Gallery for WooCommerce plugin. If the version is below 3.6.2, the system is vulnerable. Use WordPress admin panel or run: wp plugin list | grep woocommerce-dynamic-gallery in WP-CLI.

Impact Analysis

If exploited, this vulnerability allows attackers to inject and execute arbitrary JavaScript in the browsers of any user viewing the affected post, including editors or administrators. This could lead to unauthorized actions, data theft, or session hijacking on the impacted WordPress site.

Mitigation Strategies

Update the Dynamic Product Gallery for WooCommerce plugin to version 3.6.2 or later immediately. Remove or restrict Contributor-level and higher user roles temporarily until the update is applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-135471. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...