CVE-2019-20891 WooCommerce Cross-Site Request Forgery (CSRF)
Attackers can inject malicious scripts via CSV imports, leading to stored XSS and potential account takeover in WooCommerce installations.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2019-20891?
CVE-2019-20891 is a high-severity cross-site scripting vulnerability in n/a, published on 19 Jun 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
WooCommerce before 3.6.5, when it handles CSV imports of products, has a cross-site request forgery (CSRF) issue with resultant stored cross-site scripting (XSS) via includes/admin/importers/class-wc-product-csv-importer-controller.php.
Weakness: CWE-352
Which versions are affected by CVE-2019-20891?
2 open source packages ship an affected version, including woocommerce/woocommerce. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
woocommerce/woocommerce Packagist | All versions | 3.6.5 |
woocommerce/woocommerce Packagist | All versions | 3.6.5 |
Products include Woocommerce Woocommerce.
How do I fix CVE-2019-20891?
Upgrade woocommerce/woocommerce to 3.6.5 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-2019-20891 being exploited?
There is no known exploitation of CVE-2019-20891 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-rcmf-88p4-9wrg.