CVE-2024-45801Cure53 Dompurify
Medium 6.1 No auth needed
Follow: this CVE · Cure53 · Cure53 Dompurify We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Dompurify.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| cure53 | dompurify | < 2.5.4 |
| cure53 | dompurify | ≥ 3.0.0 < 3.1.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Third Party Advisory
- lists.debian.org