CVE-2022-2099 WooCommerce < 6.6.0 - Admin+ Stored HTML Injection

Medium 4.8 Published Updated

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.

PackageAffectedFixed in
woocommerce/woocommerce PackagistAll versions6.6.0
woocommerce/woocommerce PackagistAll versions6.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.

Sources

Also known as GHSA-jwvf-28fg-g4xg.

Is CVE-2022-2099 in your software?

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

Check your SBOMs for free