
CVE catalog
CVE-2026-49978
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.7, DOMPurify IN_PLACE sanitization could skip shadow contents attached to an element inside <template>.co
- Severity
- High · CVSS 8.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.40% · Oct 22, 2026
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.7, DOMPurify IN_PLACE sanitization could skip shadow contents attached to an element inside <template>.content, allowing attacker-controlled markup such as event handlers, JavaScript URLs, or scripts to survive and execute when an application cloned and inserted the sanitized template. This issue is fixed in version 3.4.7.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-dompurify | sid | 3.4.16+dfsg-1 | fixed |
| Debian | node-dompurify | forky | 3.4.16+dfsg-1 | fixed |
| Debian | node-dompurify | trixie | 3.1.7+dfsg+~3.0.5-2 | vulnerable |
| Debian | node-dompurify | bookworm | 2.4.1+dfsg+~2.4.0-2+deb12u1 | vulnerable |
| Debian | node-dompurify | bookworm-security | 2.4.1+dfsg+~2.4.0-2 | vulnerable |
| Cpe | node-dompurify | Not reported | Not reported | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-dompurify | source | sid | 3.4.12+dfsg-1 | not yet assigned | Not reported | [1142280] |
| Debian | node-dompurify | source | forky | 3.4.12+dfsg-1 | not yet assigned | Not reported | [1142280] |
| Debian | node-dompurify | source | trixie | (unfixed) | not yet assigned | Not reported | [1142280] |
| Debian | node-dompurify | source | bookworm | (unfixed) | not yet assigned | Not reported | [1142280] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-dompurify]Affected
Details (4)
2.4.1+dfsg+~2.4.0-2+deb12u1· all · bookwormAffected
nvd · node-dompurify · debian · bookworm; nvd · node-dompurify · debian · 12
2.4.1+dfsg+~2.4.0-2+deb12u1· all · bookwormAffected
nvd · node-dompurify · debian · bookworm; nvd · node-dompurify · debian · 12
2.4.1+dfsg+~2.4.0-2· all · bookworm-securityAffected
nvd · node-dompurify · debian · bookworm; nvd · node-dompurify · debian · 12
2.4.1+dfsg+~2.4.0-2· all · bookworm-securityAffected
nvd · node-dompurify · debian · bookworm; nvd · node-dompurify · debian · 12
[Debian 13 (Trixie)]
- [node-dompurify]Affected
Details (2)
3.1.7+dfsg+~3.0.5-2· all · trixieAffected
nvd · node-dompurify · debian · 13
3.1.7+dfsg+~3.0.5-2· all · trixieAffected
nvd · node-dompurify · debian · 13
Observed:
References
- [https://access.redhat.com/errata/RHSA-2026:43625]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-49978]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-49978]
- [https://security-tracker.debian.org/tracker/CVE-2026-49978]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-3000.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]