CVEfocus › CVE database › CVE-2024-45801

CVE-2024-45801Tampering by prototype polution in DOMPurify

CVSS 7.3 HighEPSS 1.3% (higher than 70% of CVEs)Published 2024-09-16Updated 2024-09-16Assigner: GitHub_M

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.

CWE-1333

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
1Fix pending
3Under investigation
5Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-dompurifyFix pendingUBUNTU-CVE-2024-45801
Ubuntu 26.04node-dompurifyUnder investigationUBUNTU-CVE-2024-45801
Ubuntu 25.10node-dompurifyWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-45801
Ubuntu 24.04node-dompurifyUnder investigationUBUNTU-CVE-2024-45801
Ubuntu 22.04node-dompurifyUnder investigationUBUNTU-CVE-2024-45801
Debian 12node-dompurifyFixed2.4.1+dfsg+~2.4.0-2+deb12u1DEBIAN-CVE-2024-45801
Red Hat Enterprise Linux 10grafanaWill not fix
Will not fix
Red Hat Enterprise Linux 10grafana-selinuxWill not fix
Will not fix
Red Hat Enterprise Linux 9grafanaWill not fix
Will not fix
Red Hat Enterprise Linux 9grafana-selinuxWill not fix
Will not fix
npm librarydompurifyFixed2.5.4GHSA-mmhx-hmjr-r674

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.