Skip to content
OpenAdvisories
High · 7.3 CVE-2024-45801 EUVD-2024-2835GHSA-mmhx-hmjr-r674

Tampering by prototype polution in DOMPurify

Published Sep 16, 2024 · Updated Sep 16, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
cure53 DOMPurify < 2.5.4, >=3.0.0, < 3.1.3 —

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 12 node-dompurify 2.4.1+dfsg+~2.4.0-2+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-dompurify No fix yet —
Ubuntu 26.04 LTS node-dompurify No fix yet —
Ubuntu 25.10 node-dompurify No fix yet —
Ubuntu 24.04 LTS node-dompurify No fix yet —
Ubuntu 22.04 LTS node-dompurify No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Ansible Automation Platform Inside 2 ansible-core 1:2.15.13-1.el8ap RHSA-2024:10762
Red Hat Ansible Automation Platform Developer 2 ansible-core 1:2.15.13-1.el8ap RHSA-2024:10762
Red Hat Ansible Automation Platform 2 ansible-core 1:2.15.13-1.el8ap RHSA-2024:10762
Red Hat Ansible Automation Platform 2 automation-controller-venv-tower 4.5.13-1.el8ap RHSA-2024:10762

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling argo-workflows 3.6.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm dompurify < 2.5.4 2.5.4 GHSA-mmhx-hmjr-r674
npm dompurify >= 3.0.0, < 3.1.3 3.1.3 GHSA-mmhx-hmjr-r674

Advisories 15

References