Swatchly – Product Variation Swatches for WooCommerce <= 1.4.18 - Authenticated (Contributor+) Stored Cross-Site Scripting via Post Content

Medium 6.4 CWE-79Fixed in 1.4.19
ID
WPSEC-2026-4237
Plugin
Swatchly – Product Variation Swatches for WooCommerce (swatchly)
Affected
from 1.1.7 before 1.4.19
Remediation
Update to 1.4.19 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-30
Attack surface
Swatchly – Product Variation Swatches for WooCommerce on WPSec AttackSurface
Fix released
Published

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.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0