# eCommerce Product Catalog <= 3.6.5 - Unauthenticated Cross-Site Scripting via Cart Button Label

- **ID:** WPSEC-2026-1760
- **Plugin:** eCommerce Product Catalog (`ecommerce-product-catalog`), https://wordpress.org/plugins/ecommerce-product-catalog/
- **Affected versions:** all versions before 3.6.6
- **Fixed in:** 3.6.6 (Update to 3.6.6 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/ecommerce-product-catalog
- **Fix released:** 2026-10-26
- **Published:** 2026-10-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1760/

## Description

The eCommerce Product Catalog plugin for WordPress is vulnerable to Cross-Site Scripting via the cart button label in all versions up to, and including, 3.6.5, due to insufficient output escaping in the ic_shopping_cart_button() function, which writes the label into the data-label attribute and the button text. The label can be supplied through the 'ic_pre_cached_parts' AJAX action, which unauthenticated users can call without a nonce and which returns the result in a text/html response, and through the content of the [cart_button] shortcode. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute if they can trick a user into submitting a crafted form, and for authenticated attackers with contributor-level access and above to inject scripts into pages that execute whenever a user views them. The cart is only active when the catalog runs in store or inquiry mode.

## References

- https://wpsec.com/vuln/WPSEC-2026-1760/
- https://plugins.svn.wordpress.org/ecommerce-product-catalog/tags/3.6.6/
- https://wordpress.org/plugins/ecommerce-product-catalog/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-1760/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
