CVE-2022-2099 WooCommerce < 6.6.0 - Admin+ Stored HTML Injection
Admins can inject stored HTML into payment gateway titles, potentially leading to script execution and account takeover in WooCommerce installations.
- 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-2022-2099?
CVE-2022-2099 is a medium-severity cross-site scripting vulnerability in Unknown WooCommerce, published on 17 Jul 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
The WooCommerce WordPress plugin before 6.6.0 is vulnerable to stored HTML injection due to lack of escaping and sanitizing in the payment gateway titles
Weakness: CWE-116
Which versions are affected by CVE-2022-2099?
2 open source packages ship an affected version, including woocommerce/woocommerce. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
woocommerce/woocommerce Packagist | All versions | 6.6.0 |
woocommerce/woocommerce Packagist | All versions | 6.6.0 |
Products include Woocommerce Woocommerce.
How do I fix CVE-2022-2099?
Upgrade woocommerce/woocommerce to 6.6.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-2022-2099 being exploited?
There is no known exploitation of CVE-2022-2099 in the wild and no public exploit code.
Other vulnerabilities in Unknown WooCommerce
Sources
Also known as GHSA-jwvf-28fg-g4xg.