Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-106604 Overview
CVE-2026-106604 is a stored cross-site scripting (XSS) vulnerability in the YITH WooCommerce Compare plugin for WordPress. The flaw affects all plugin versions up to and including 3.15.0. An authenticated attacker with low privileges can inject malicious scripts that persist in the application and execute in the browsers of other users who view the affected pages. The vulnerability is classified under CWE-79, improper neutralization of input during web page generation.
Critical Impact
Stored XSS enables session hijacking, credential theft, and administrative action abuse against WordPress sites running vulnerable versions of YITH WooCommerce Compare.
Affected Products
- YITH WooCommerce Compare plugin for WordPress
- All versions from initial release through 3.15.0
- WordPress sites with WooCommerce product comparison functionality
Discovery Timeline
- 2026-10-15 - CVE-2026-106604 published to NVD
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-106604
Vulnerability Analysis
The vulnerability resides in input handling routines of the YITH WooCommerce Compare plugin. User-supplied data reaches the rendered HTML output without proper escaping or sanitization. An attacker with contributor-level or higher privileges can inject JavaScript payloads that persist in the database. When administrators or shoppers subsequently load the affected page, the payload executes in their browser context.
The CVSS vector indicates the attack is network-reachable, requires low privileges, and depends on user interaction. The scope is changed, meaning the injected script affects resources beyond the vulnerable component, including other site visitors and administrators. Successful exploitation can lead to session cookie theft, forced administrative actions, phishing redirects, and defacement of comparison tables.
Root Cause
The root cause is missing or insufficient output encoding when the plugin renders attacker-controlled input in HTML contexts. WordPress provides helpers such as esc_html(), esc_attr(), and wp_kses() for this purpose. The plugin fails to apply these functions consistently to fields rendered within comparison views, allowing raw markup and script content to reach the DOM.
Attack Vector
Exploitation requires an authenticated session with at least contributor-level privileges on the target WordPress installation. The attacker submits input containing a JavaScript payload through a plugin field that is later rendered unsanitized. A victim with a privileged session triggers execution by viewing the stored content. See the Patchstack XSS Vulnerability Analysis for additional technical context.
Detection Methods for CVE-2026-106604
Indicators of Compromise
- Unexpected <script> tags, event handlers, or JavaScript URIs stored in WooCommerce product metadata or comparison fields
- Outbound requests from administrator browsers to unknown domains shortly after loading comparison pages
- New or modified administrator accounts created without a corresponding authorized change ticket
- WordPress audit log entries showing content edits by low-privilege users touching comparison-related post meta
Detection Strategies
- Scan the WordPress database for suspicious payload patterns in post meta and plugin options, such as onerror=, onload=, javascript:, and encoded script tags
- Enable WordPress security logging to track content submissions by contributor and author roles
- Deploy a web application firewall with rules that flag stored XSS payloads targeting WooCommerce endpoints
Monitoring Recommendations
- Monitor administrator session activity for anomalous cookie use, concurrent sessions, or unusual IP origins
- Alert on Content Security Policy (CSP) violation reports originating from WooCommerce comparison pages
- Track plugin version inventory and flag any site running YITH WooCommerce Compare at or below 3.15.0
How to Mitigate CVE-2026-106604
Immediate Actions Required
- Identify all WordPress sites running YITH WooCommerce Compare and confirm the installed version
- Upgrade the plugin to the vendor-released fixed version above 3.15.0 as soon as it becomes available
- Audit low-privilege user accounts and revoke access for any that are inactive or unverified
- Review stored comparison data for injected payloads and sanitize affected records
Patch Information
The vulnerability affects YITH WooCommerce Compare through version 3.15.0. Site administrators should consult the vendor advisory and the Patchstack XSS Vulnerability Analysis for the patched release and apply it through the WordPress plugin update workflow.
Workarounds
- Temporarily disable the YITH WooCommerce Compare plugin until the patched version is applied
- Enforce a strict Content Security Policy that blocks inline scripts and restricts script sources
- Restrict contributor and author roles on WordPress sites that do not require low-privilege user content submission
- Deploy a web application firewall rule set that filters XSS payloads targeting WooCommerce and plugin endpoints
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

