# YITH WooCommerce Ajax Search <= 2.30.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Search Block Content

- **ID:** WPSEC-2026-2905
- **Plugin:** YITH WooCommerce Ajax Search (`yith-woocommerce-ajax-search`), https://wordpress.org/plugins/yith-woocommerce-ajax-search/
- **Affected versions:** from 2.0.0 before 2.30.1
- **Fixed in:** 2.30.1 (Update to 2.30.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 Low, affected versions Low (as of 2026-11-12)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/yith-woocommerce-ajax-search
- **Fix released:** 2026-11-10
- **Published:** 2026-11-12
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2905/

## Description

The YITH WooCommerce Ajax Search plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the YITH Search block in all versions up to, and including, 2.30.0. This is due to the front-end block renderer re-parsing the text content of child nodes inside the block's saved markup as HTML with no filtering. Entity-escaped text such as an encoded iframe tag with a srcdoc attribute gets through WordPress content sanitization as plain text and becomes live markup when it is re-parsed. 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-2905/
- https://plugins.svn.wordpress.org/yith-woocommerce-ajax-search/tags/2.30.1/
- https://wordpress.org/plugins/yith-woocommerce-ajax-search/

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

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.
