# CVE-2021-4372: WooCommerce Dynamic Pricing and Discounts <= 2.4.1 - Stored Cross-Site Scripting

- Severity: Medium 6.5 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-06-07T01:51:41.110Z
- Modified: 2026-06-17T04:19:35.907Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Wordfence

## 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.

(As written by CVE List.)

## Affected

- RightPress WooCommerce Dynamic Pricing and Discounts: before 2.4.2
- rightpress woocommerce_dynamic_pricing_and_discounts: up to 2.4.1

## Every score

- Wordfence: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://blog.nintechnet.com/woocommerce-dynamic-pricing-and-discounts-plugin-fixed-multiple-vulnerabilities/> (exploit)
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/bcaa5d0e-b764-4566-bd46-2d41dc391c36?source=cve> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-4372](https://www.cve.org/CVERecord?id=CVE-2021-4372), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2021-4372](https://nvd.nist.gov/vuln/detail/CVE-2021-4372), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4372 · Whole record: https://cve.day/CVE-2021-4372.json · Rebuilt by cve.day 2026-11-25T22:24:37.183Z
