Skip to main content
VulnerabilityPublished Updated

CVE-2024-45801: DOMPurify allows tampering by prototype pollution

Affects dompurifySource GCVE Database

0
Compare
Authoritative record:CVE-2024-45801· High 7.3

Not known to be exploited · CVSS 7.3 High : upgrade to 2.5.4 soon.

Data as of 27 Nov 2026, 17:03 UTC

CVSS 3.1 base score
7.3High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.17.3
Patch
Available – fixed in 2.5.4, 3.1.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 16 Sep 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.

What to do

Upgrade dompurify to 2.5.4; dompurify to 3.1.3.

Affected software

ProductAffectedFixed in
npmdompurifyAffected
  • <2.5.4
Fixed in
  • 2.5.4
npmdompurifyAffected
  • >=3.0.0 <3.1.3
Fixed in
  • 3.1.3

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Users should upgrade DOMPurify to version 2.5.4 or later if using the 2.x branch, or to version 3.1.3 or later if using the 3.x branch. These versions contain the official fixes for the prototype pollution and depth check bypass vulnerabilities. No other mitigation is required once patched.

Description

DOMPurify versions prior to 2.5.4 and versions 3.0.0 up to but not including 3.1.3 are vulnerable to a prototype pollution issue that allows attackers to bypass depth checking mechanisms. This vulnerability can enable cross-site scripting (XSS) attacks by tampering with the sanitization process. Fixes have been released in versions 2.5.4 and 3.1.3.

References

Community reviews

Loading reviews…