Name | CVE-2024-47875 |
Description | DOMPurify 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-5790-1 |
Debian Bugs | 1084983 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
node-dompurify (PTS) | bookworm | 2.4.1+dfsg+~2.4.0-2+deb12u1 | fixed |
| bookworm (security) | 2.4.1+dfsg+~2.4.0-2 | fixed |
| sid, trixie | 3.1.7+dfsg+~3.0.5-1 | fixed |
The information below is based on the following data on fixed versions.
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.