VDB
DEBIAN-CVE-2026-0540
DEBIAN-CVE-2026-0540
PUBLISHED
CVSS 5.300000190734863 MEDIUM
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.
Risk Scores
CVSS v4.0
5.300000190734863
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Debian:12 | node-dompurify | 0, 2.4.1+dfsg+~2.4.0-1, 2.4.1+dfsg+~2.4.0-2 |
| Debian:14 | node-dompurify | 0, 3.2.5+dfsg-1, * |
| Debian:13 | node-dompurify | 0, 3.2.5+dfsg-1, 3.3.2+dfsg-1 |
Timeline
- Mar 3, 2026 CVE Published
- Apr 28, 2026 CVE Updated