CVE-2021-24323 Woocommerce < 5.2.0 - Authenticated Stored Cross-Site Scripting (XSS)
Authenticated administrators can inject malicious scripts via tax class fields in WooCommerce when taxes are enabled, leading to stored XSS.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-24323?
CVE-2021-24323 is a medium-severity cross-site scripting vulnerability in Automattic WooCommerce, published on 17 May 2021. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
When taxes are enabled, the "Additional tax classes" field was not properly sanitised or escaped before being output back in the admin dashboard, allowing high privilege users such as admin to use XSS payloads even when the unfiltered_html is disabled
Weakness: CWE-79
Which versions are affected by CVE-2021-24323?
2 open source packages ship an affected version, including woocommerce/woocommerce. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
woocommerce/woocommerce Packagist | All versions | 5.2.0 |
woocommerce/woocommerce Packagist | All versions | 5.2.0 |
Products include Woocommerce Woocommerce.
How do I fix CVE-2021-24323?
Upgrade woocommerce/woocommerce to 5.2.0 or later.
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-24323 being exploited?
There is no known exploitation of CVE-2021-24323 in the wild and no public exploit code.
Other vulnerabilities in Automattic WooCommerce
Sources
Also known as GHSA-mp46-7x6q-f28m.