CVE-2021-4372

published 7 Jun 2023 · updated 8 Apr 2026

WooCommerce Dynamic Pricing and Discounts <= 2.4.1 - Stored Cross-Site Scripting

6.5MediumCVSS 6.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 2.4.2.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
RightPress<2.4.22.4.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-4372 severity on Zeptric[![CVE-2021-4372](https://zeptric.io/badge/cve/CVE-2021-4372.svg)](https://zeptric.io/cve/CVE-2021-4372)