
CVE catalog
CVE-2026-0540
DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 729097f, contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five m
- 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.35% · Oct 25, 2026
DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 2726c74, contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can include payloads like </noscript><img src=x onerror=alert(1)> in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.
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.17+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 |
| Opensuse | cacti | tumbleweed | 1.2.30+git306.82d5aef5-1.1 | fixed |
| 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 | 25.10 | 3.1.7+dfsg+~3.0.5-1 | vulnerable |
| Ubuntu | node-dompurify | 25.10 | 3.1.7+dfsg+~3.0.5-2 | vulnerable |
| Ubuntu | node-dompurify | 26.10 | 3.3.3+dfsg-1 | vulnerable |
| Ubuntu | node-dompurify | 26.10 | 3.4.2+dfsg-1 | vulnerable |
| Ubuntu | node-dompurify | 26.10 | 3.4.5+dfsg-1 | vulnerable |
| Ubuntu | node-dompurify | 26.10 | 3.4.12+dfsg-1 | vulnerable |
| Ubuntu | node-dompurify | 26.10 | 3.4.13+dfsg-1 | vulnerable |
| Ubuntu | node-dompurify | 26.10 | 3.4.13+dfsg-2 | 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.3.2+dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | node-dompurify | source | forky | 3.3.2+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 |
| Opensuse | cacti | rpm | tumbleweed | 1.2.30+git306.82d5aef5-1.1 | Not reported | OPENSUSE-SU-2026:10599-1 | 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
[openSUSE Tumbleweed]
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10599-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-0540]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-0540]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-0540]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:10599-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-0540]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0540.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2448.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]