CVE-2026-133368: Swatchly <= 1.4.18 - Unauthenticated Stored Cross-Site Scripting via Comment Content
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 commentpreviouslyapproved setting causes subsequent comments from the same name and email to be auto-approved.
Affected Software
Event History
Frequently Asked Questions
Which sites are exposed to this issue?
Sites using Swatchly versions through 1.4.18 are affected only when Elementor is also installed, because the vulnerable filter is gated on Elementor’s presence.
What must an attacker do before they can exploit the stored XSS?
The attacker must first get a comment approved. After that, WordPress’s default comment_previously_approved behavior can automatically approve subsequent comments using the same name and email address.
Does exploitation require an authenticated WordPress account or user interaction from the attacker?
No WordPress authentication is required, and the attack complexity is low. The injected script executes when another user accesses the page containing the malicious comment.