Denial of servicein Cure53 DOMPurify.
No public exploit found; not on exploited lists.
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.
- Upgrade DOMPurify to 2.5.4, 3.1.3 or later, whichever matches your release line.
- Upgrade dompurify (npm) to 2.5.4, 3.1.3 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 9 Sep 2024CVE ID reserved by GitHub_M.
- 16 Sep 2024Published in the CVE List.
- 27 Nov 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other DOMPurify vulnerabilities
Same weakness: Regular expression denial of service
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- github.com x_refsource_MISC
- lists.debian.org
Patchminder. CVE-2024-45801: Denial of service in Cure53 DOMPurify. https://patchminder.com/cve/cve-2024-45801/ (accessed 5 December 2026).