# YITH WooCommerce Compare <= 3.14.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via yith_woocompare_counter Shortcode Attributes

- **ID:** WPSEC-2026-0445
- **Plugin:** YITH WooCommerce Compare (`yith-woocommerce-compare`), https://wordpress.org/plugins/yith-woocommerce-compare/
- **Affected versions:** all versions before 3.15.0
- **Fixed in:** 3.15.0 (Update to 3.15.0 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-10-06)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/yith-woocommerce-compare
- **Fix released:** 2026-10-05
- **Published:** 2026-10-06
- **URL:** https://wpsec.com/vuln/WPSEC-2026-0445/

## Description

The YITH WooCommerce Compare plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'text', 'type', 'show_icon' and 'icon' attributes of the yith_woocompare_counter shortcode in all versions up to, and including, 3.14.0 due to insufficient input sanitization and output escaping on user supplied attributes, including values containing escape sequences decoded during shortcode attribute parsing. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-0445/
- https://plugins.svn.wordpress.org/yith-woocommerce-compare/tags/3.15.0/
- https://wordpress.org/plugins/yith-woocommerce-compare/

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

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.
