# YITH WooCommerce Ajax Product Filter <= 5.25.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'selector' Shortcode Attribute

- **ID:** WPSEC-2026-3272
- **Plugin:** YITH WooCommerce Ajax Product Filter (`yith-woocommerce-ajax-navigation`), https://wordpress.org/plugins/yith-woocommerce-ajax-navigation/
- **Affected versions:** from 4.0.2 before 5.25.1
- **Fixed in:** 5.25.1 (Update to 5.25.1 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-11-17)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/yith-woocommerce-ajax-navigation
- **Fix released:** 2026-11-16
- **Published:** 2026-11-17
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3272/

## Description

The YITH WooCommerce Ajax Product Filter plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'selector' attribute of the yith_wcan_filters shortcode in all versions up to, and including, 5.25.0 due to insufficient input sanitization of the user-supplied selector. The plugin prints the selector into the preset's data-target attribute, and the front-end script passes it to jQuery as a selector, which builds HTML from it. 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-3272/
- https://plugins.svn.wordpress.org/yith-woocommerce-ajax-navigation/tags/5.25.1/
- https://wordpress.org/plugins/yith-woocommerce-ajax-navigation/

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

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.
