{
 "schema_version": "1.9.2",
 "id": "WPSEC-2026-4168",
 "modified": "2026-11-28T11:43:43Z",
 "published": "2026-11-28T11:43:43Z",
 "summary": "YayPricing – WooCommerce Dynamic Pricing & Discounts <= 3.6.2 - Authenticated (Shop Manager+) Stored Cross-Site Scripting via Pricing Rule Values",
 "details": "The YayPricing – WooCommerce Dynamic Pricing & Discounts plugin for WordPress is vulnerable to Stored Cross-Site Scripting via pricing rule values in all versions up to, and including, 3.6.2. This is due to insufficient input sanitization and output escaping. The stored pricing value and maximum discount of a rule are placed unchanged into a JavaScript price formula. That formula is printed without escaping in the 'data-formula' attribute of offer descriptions, and the storefront variation script passes it to JavaScript eval(). This makes it possible for authenticated attackers with Shop Manager-level access and above, who can save pricing rules through the plugin's REST API, to inject arbitrary web scripts. The scripts run when a shopper views an affected product page. This only affects multi-site installations and installations where unfiltered_html has been disabled.",
 "severity": [
  {
   "type": "CVSS_V3",
   "score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N"
  }
 ],
 "affected": [
  {
   "package": {
    "ecosystem": "WordPress:Plugin",
    "name": "yaypricing"
   },
   "ranges": [
    {
     "type": "ECOSYSTEM",
     "events": [
      {
       "introduced": "0"
      },
      {
       "fixed": "3.6.3"
      }
     ]
    }
   ],
   "database_specific": {
    "affected_text": [
     "all versions before 3.6.3"
    ]
   }
  }
 ],
 "references": [
  {
   "type": "ADVISORY",
   "url": "https://wpsec.com/vuln/WPSEC-2026-4168/"
  },
  {
   "type": "WEB",
   "url": "https://plugins.svn.wordpress.org/yaypricing/tags/3.6.3/"
  },
  {
   "type": "PACKAGE",
   "url": "https://wordpress.org/plugins/yaypricing/"
  }
 ],
 "database_specific": {
  "url": "https://wpsec.com/vuln/WPSEC-2026-4168/",
  "cwe_ids": [
   "CWE-79"
  ],
  "vulnerability_type": "XSS",
  "severity": "Medium",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 }
}
