CVE-2024-47875

NameCVE-2024-47875
DescriptionDOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to nesting-based mXSS. This vulnerability is fixed in 2.5.0 and 3.1.3.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-5790-1
Debian Bugs1084983

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-dompurify (PTS)bookworm2.4.1+dfsg+~2.4.0-2+deb12u1fixed
bookworm (security)2.4.1+dfsg+~2.4.0-2fixed
sid, trixie3.1.7+dfsg+~3.0.5-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-dompurifysourcebookworm2.4.1+dfsg+~2.4.0-2DSA-5790-1
node-dompurifysource(unstable)3.1.6+dfsg+~3.0.5-11084983

Notes

https://github.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf
https://github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f (2.5.1)
https://github.com/cure53/DOMPurify/pull/943
https://github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a (3.1.1)
When fixing the issue be aware that the fixing commit would introduce CVE-2024-45801
when only cherry-picking commits.

Search for package or bug name: Reporting problems