Skip to content

CVE-2024-45801 Tampering by prototype polution in DOMPurify

MediumCVSS 6.1 EPSS 0.89%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

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 path

7 packages: 3 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/node-dompurify(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/node-dompurify(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/node-dompurify(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/node-dompurify(Ubuntu 26.10) All versions No fix listed No fix yet
cure53 DOMPurify < 2.5.4; = < 2.5.4; = >=3.0.0, < 3.1.3; >= 3.0.0, < 3.1.3 2.5.4, 3.1.3 Fixed
debian/node-dompurify(Debian 12) < 2.4.1+dfsg+~2.4.0-2+deb12u1; = 2.4.1+dfsg+~2.4.0-1; = 2.4.1+dfsg+~2.4.0-2 2.4.1+dfsg+~2.4.0-2+deb12u1 Fixed
npm dompurify(npm) < 2.5.4; >= 3.0.0, < 3.1.3 2.5.4, 3.1.3 Fixed

Affected products

ProductAffected versionsFixed in
npm dompurify(npm) < 2.5.4 2.5.4
npm dompurify(npm) >= 3.0.0, < 3.1.3 3.1.3
debian/node-dompurify(Debian:12) < 2.4.1+dfsg+~2.4.0-2+deb12u1 2.4.1+dfsg+~2.4.0-2+deb12u1
debian/node-dompurify(Debian:12) = 2.4.1+dfsg+~2.4.0-1 No fix listed
debian/node-dompurify(Debian:12) = 2.4.1+dfsg+~2.4.0-2 No fix listed
ubuntu/node-dompurify(Ubuntu:22.04) All versions No fix listed
cure53 DOMPurify = < 2.5.4 No fix listed
cure53 DOMPurify = >=3.0.0, < 3.1.3 No fix listed
ubuntu/node-dompurify(Ubuntu:24.04) All versions No fix listed
cure53 DOMPurify < 2.5.4 2.5.4
cure53 DOMPurify >= 3.0.0, < 3.1.3 3.1.3
ubuntu/node-dompurify(Ubuntu:26.04) All versions No fix listed
ubuntu/node-dompurify(Ubuntu:26.10) All versions No fix listed

References