CVE-2021-42367 Variation Swatches for WooCommerce <= 2.1.1 Authenticated Stored Cross-Site Scripting

Medium 6.4 Published Updated

Low-level authenticated users can inject arbitrary web scripts via missing authorization checks in the Variation Swatches for WooCommerce plugin.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-42367?

CVE-2021-42367 is a medium-severity cross-site scripting vulnerability in Variation Swatches for WooCommerce, published on 14 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The Variation Swatches for WooCommerce WordPress plugin is vulnerable to Stored Cross-Site Scripting via several parameters found in the ~/includes/class-menu-page.php file which allows attackers to inject arbitrary web scripts, in versions up to and including 2.1.1. Due to missing authorization checks on the tawcvs_save_settings function, low-level authenticated users such as subscribers can exploit this vulnerability.

Weakness: CWE-862, CWE-79

Which versions are affected by CVE-2021-42367?

It affects 1 product.

Products include Variation Swatches for Woocommerce Project Variation Swatches for Woocommerce.

How do I fix CVE-2021-42367?

No fix has been published for CVE-2021-42367 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-42367 being exploited?

There is no known exploitation of CVE-2021-42367 in the wild and no public exploit code.

Sources

Also known as GHSA-6ffh-2qg3-m72q.

Is CVE-2021-42367 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free