Description
The Swatchly – Product Variation Swatches for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 1.4.18 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires Elementor to be co-installed (the plugin gates the filter on its presence) and the attacker to have had one prior comment approved, after which WordPress's default comment_previously_approved setting causes subsequent comments from the same name and email to be auto-approved.
Severity (CVSS)
| Base score | 7.2 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| Provided by | CNA |
Weaknesses
- CWE-79 — CWE-79 Improper Neutralization of Input During Web Page Generation
Affected products
| Vendor | Product | Versions |
|---|---|---|
| hasthemes | Swatchly – Product Variation Swatches for WooCommerce | 0 to <=1.4.18 [affected] |
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/e9ec6dc5-bef2-4b37-94f5-6c916dab0b0a?source=cve
- https://plugins.trac.wordpress.org/browser/swatchly/tags/1.4.18/includes/Compatibility/Elementor.php#L15
- https://plugins.trac.wordpress.org/browser/swatchly/tags/1.4.18/includes/Frontend/Woo_Config.php#L114
- https://plugins.trac.wordpress.org/browser/swatchly/tags/1.4.18/includes/Frontend/Woo_Config.php#L847
- https://plugins.trac.wordpress.org/browser/swatchly/tags/1.4.18/assets/js/add-to-cart-variation.js#L300
- https://plugins.trac.wordpress.org/browser/swatchly/trunk
- https://plugins.trac.wordpress.org/changeset/3832543/swatchly/trunk/includes/Compatibility/Elementor.php
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 03 Dec 2026 08:05 UTC.