{
 "id": "WPSEC-2026-4237",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4237/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4237/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4237/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4237.json",
 "title": "Swatchly – Product Variation Swatches for WooCommerce <= 1.4.18 - Authenticated (Contributor+) Stored Cross-Site Scripting via Post Content",
 "description": "The Swatchly – Product Variation Swatches for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via post content in all versions up to, and including, 1.4.18, due to the plugin's Elementor compatibility code adding select, option and form elements with arbitrary class and data-* attributes to the wp_kses_allowed_html filter for every context, including the filter that sanitizes content saved by users without the unfiltered_html capability. This makes it possible for authenticated attackers, with contributor-level access and above, to store a crafted variation form whose data attributes the WooCommerce variation script, which the plugin loads on front-end pages, writes into the page as HTML, so arbitrary web scripts execute whenever a user opens an injected page. The site must have Elementor active.",
 "plugin": {
  "slug": "swatchly",
  "name": "Swatchly – Product Variation Swatches for WooCommerce",
  "full_name": "Swatchly – Product Variation Swatches for WooCommerce",
  "wordpress_org": "https://wordpress.org/plugins/swatchly/",
  "advisories_url": "https://wpsec.com/vuln/plugin/swatchly/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/swatchly"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": "1.1.7",
    "from_inclusive": true,
    "to": "1.4.19",
    "to_inclusive": false
   }
  ],
  "text": [
   "from 1.1.7 before 1.4.19"
  ]
 },
 "introduced_in": "1.1.7",
 "fixed_in": "1.4.19",
 "remediation": "Update to 1.4.19 or later.",
 "fix_released": "2026-11-29T08:13:56+00:00",
 "published": "2026-11-30T08:42:34+00:00",
 "updated": "2026-11-29T16:19:24.630206+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4237/",
  "https://plugins.svn.wordpress.org/swatchly/tags/1.4.19/",
  "https://wordpress.org/plugins/swatchly/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/swatchly",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-11-30"
 }
}