LiveActive security incident?Get immediate response
CVE Record

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

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.

MediumCVSS 6.5Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This flaw lets an unauthenticated visitor plant JavaScript through imported plugin settings. The code would run later when an administrator opens the plugin settings area. For an online store, that creates risk of admin-session compromise, settings tampering, or data exposure, but the sources do not show confirmed active exploitation.

Executive priority

Treat this as a moderate-priority e-commerce platform issue. Prioritize stores using the affected plugin because compromise requires no attacker account and execution occurs in an administrator context. Escalate if suspicious settings changes or admin-page script execution are found.

Technical view

CVE-2021-4372 is stored cross-site scripting in RightPress WooCommerce Dynamic Pricing and Discounts through version 2.4.1. The issue is missing sanitization in settings imported through the import() function. CVSS is 6.5, CWE-79, with network attack vector and no privileges required.

Likely exposure

Exposure is likely limited to WordPress/WooCommerce sites running WooCommerce Dynamic Pricing and Discounts version 2.4.1 or earlier, especially public stores where unauthenticated users can reach the vulnerable import behavior.

Exploitation context

The provided sources describe unauthenticated stored XSS that triggers when an administrator visits the settings area. CISA KEV status is false, and the bundle provides no evidence of active exploitation or public weaponization.

Researcher notes

Evidence supports stored XSS from unsanitized imported settings, not remote code execution. The source bundle does not name a specific fixed version, exploit campaign, or complete affected-version metadata beyond <=2.4.1, so remediation should be tied to vendor-confirmed releases.

Mitigation direction

  • Upgrade WooCommerce Dynamic Pricing and Discounts beyond 2.4.1 according to vendor guidance.
  • If a fixed update cannot be confirmed, disable the plugin until guidance is available.
  • Review imported plugin settings for unexpected script content or unauthorized changes.
  • Limit WordPress administrator access to trusted users and hardened admin workstations.
  • Check Wordfence and vendor advisories for any additional remediation details.

Validation and detection

  • Inventory WordPress sites for the plugin name and installed version.
  • Confirm no production site is running version 2.4.1 or earlier.
  • Review plugin settings and imported configuration for suspicious JavaScript.
  • Check web logs for unusual unauthenticated requests involving plugin settings import behavior.
  • Verify administrator settings pages load cleanly after remediation.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-4372 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.5CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N3.92.5Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.5Medium
CVSS 3.1 vector shape for CVE-2021-4372Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
RightPressWooCommerce Dynamic Pricing and Discounts0unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.