Live threats

All CVEs / Cure53

CVE-2024-45801Cure53 Dompurify

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.3%
probability of exploitation in 30 days · percentile 71
Auth required
No
Published
Sep 16, 2024
Updated
Nov 27, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333, CWE-1321
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It has been discovered that malicious HTML using special nesting techniques can bypass the depth checking added to DOMPurify in recent releases. It was also possible to use Prototype Pollution to weaken the depth check. This renders dompurify unable to avoid cross site scripting (XSS) attacks. This issue has been addressed in versions 2.5.4 and 3.1.3 of DOMPurify. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Original NVD text.

What to do

  1. Apply the vendor's security update for Dompurify.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm dompurify < 2.5.4 2.5.4 npm install dompurify@2.5.4
npm dompurify ≥ 3.0.0 < 3.1.3 3.1.3 npm install dompurify@3.1.3

Per OSV / GitHub Advisories (GHSA-mmhx-hmjr-r674). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
cure53dompurify< 2.5.4
cure53dompurify≥ 3.0.0 < 3.1.3

Official sources

References

Links published by the sources. Open them with care.