CVE-2021-4372 WooCommerce Dynamic Pricing and Discounts <= 2.4.1 - Stored Cross-Site Scripting
Unauthenticated attackers can inject malicious JavaScript via imported settings, leading to code execution when administrators view the settings area.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-4372?
CVE-2021-4372 is a medium-severity cross-site scripting vulnerability in RightPress WooCommerce Dynamic Pricing and Discounts, published on 7 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The WooCommerce Dynamic Pricing and Discounts plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 2.4.1. This is due to missing sanitization on the settings imported via the import() function. This makes it possible for unauthenticated attackers to import a settings file containing malicious JavaScript that would execute when an administrator accesses the settings area of the site.
Weakness: CWE-79
Which versions are affected by CVE-2021-4372?
It affects 1 product.
Products include Rightpress Woocommerce Dynamic Pricing and Discounts.
How do I fix CVE-2021-4372?
No fix has been published for CVE-2021-4372 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-4372 being exploited?
There is no known exploitation of CVE-2021-4372 in the wild and no public exploit code.
Sources
Also known as GHSA-h2r8-43hj-47vm.