{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-0954",
 "modified": "2026-11-23T07:06:33Z",
 "published": "2026-10-14T15:52:35Z",
 "summary": "YITH WooCommerce Compare <= 3.15.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'text' Shortcode Attribute",
 "details": "The YITH WooCommerce Compare plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'text' attribute of the [yith_woocompare_counter] shortcode in all versions up to, and including, 3.15.0. This is due to insufficient input sanitization and output escaping. The attribute is only passed through sanitize_text_field(), which leaves HTML-entity-encoded markup in place. The value is then printed into the counter's data-text_o attribute with esc_attr(), which does not encode existing entities a second time. On page load, the front-end counter script writes the decoded value into the page with jQuery's .html(). 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.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "yith-woocommerce-compare"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "0"
      },
      {
       "fixed": "3.15.1"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "all versions before 3.15.1"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-0954/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/yith-woocommerce-compare/tags/3.15.1/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/yith-woocommerce-compare/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-0954/",
  "cwe_ids": [
   "CWE-79"
  ],
  "vulnerability_type": "XSS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
