Skip to content
OpenAdvisories
Critical · 9.1 Public exploit CVE-2024-48910 EUVD-2024-3092GHSA-p3vf-v8qc-cwcr

DOMPurify vulnerable to tampering by prototype polution

Published Oct 31, 2024 · Updated Nov 3, 2025 · Assigned by GitHub_M

Description

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify was vulnerable to prototype pollution. This vulnerability is fixed in 2.4.2.

Affected products

VendorProductAffectedFixed
cure53 DOMPurify < 2.4.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 cacti 1.2.26+ds1-1 —
Debian 14 node-dompurify 3.0.9+dfsg+~3.0.5-1 —
Debian 13 cacti 1.2.26+ds1-1 —
Debian 13 node-dompurify 3.0.9+dfsg+~3.0.5-1 —
Debian 12 cacti 1.2.24+ds1-1+deb12u2 —
Debian 12 node-dompurify 2.4.1+dfsg+~2.4.0-2+deb12u1 —
Debian 11 cacti 1.2.16+ds1-2+deb11u5 DLA-4048-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS node-dompurify No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm dompurify < 2.4.2 2.4.2 GHSA-p3vf-v8qc-cwcr

Advisories 2

References