
CVE catalog
CVE-2026-65902
DOMPurify before 3.4.7 (affected versions <= 3.4.5) passes direct references to the module-level DEFAULT_ALLOWED_TAGS and DEFAULT_ALLOWED_ATTR sets to the uponSanitizeElement and uponSanitizeAttribute
- Severity
- Medium · CVSS 6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.36% · Oct 22, 2026
DOMPurify before 3.4.7 (affected versions <= 3.4.5) passes direct references to the module-level DEFAULT_ALLOWED_TAGS and DEFAULT_ALLOWED_ATTR sets to the uponSanitizeElement and uponSanitizeAttribute hooks via data.allowedTags / data.allowedAttributes when sanitize is called without an explicit cfg.ALLOWED_TAGS / cfg.ALLOWED_ATTR array. A hook that mutates these fields permanently widens the default allow-lists for the lifetime of the DOMPurify instance, so all subsequent default-config sanitize calls inherit the widened defaults and attacker payloads using the poisoned tag/attribute name survive sanitization. removeAllHooks(), clearConfig(), and passing a fresh cfg do not recover the state; only constructing a new DOMPurify instance does.
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 |
| Ubuntu | node-dompurify | 22.04 | 2.3.0+dfsg-2 | vulnerable |
| Ubuntu | node-dompurify | 22.04 | 2.3.3+dfsg-1 | vulnerable |
| Ubuntu | node-dompurify | 24.04 | 2.4.1+dfsg+~2.4.0-1 | vulnerable |
| Ubuntu | node-dompurify | 24.04 | 3.0.9+dfsg+~3.0.5-1 | vulnerable |
| Ubuntu | node-dompurify | 26.04 | 3.1.7+dfsg+~3.0.5-2 | vulnerable |
| Ubuntu | node-dompurify | 26.04 | 3.3.3+dfsg-1 | 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 | Not reported |
| Debian | node-dompurify | source | forky | 3.4.12+dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | node-dompurify | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | node-dompurify | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
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:58500]
- [https://ftp.suse.com/pub/projects/security/]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-65902]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-65902]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-65902]
- [https://security-tracker.debian.org/tracker/CVE-2026-65902]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]