CVE-2026-0540
DOMPurify XSS via Missing Rawtext Elements in SAFE_FOR_XML
CVSS Score
6.1
EPSS Score
0.0%
EPSS Percentile
1th
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.
| CWE | CWE-79 |
| Vendor | cure53 |
| Product | dompurify |
| Published | Mar 3, 2026 |
| Last Updated | Mar 25, 2026 |
Stay Ahead of the Next One
Get instant alerts for cure53 dompurify
Be the first to know when new medium vulnerabilities affecting cure53 dompurify are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
Affected Versions
cure53 / DOMPurify
3.1.3 โค 3.3.1 2.5.3 โค 2.5.8
References
github.com: https://github.com/cure53/DOMPurify github.com: https://github.com/cure53/DOMPurify/commit/302b51de22535cc90235472c52e3401bedd46f80 github.com: https://github.com/cure53/DOMPurify/releases/tag/3.3.2 fluidattacks.com: https://fluidattacks.com/advisories/daft vulncheck.com: https://www.vulncheck.com/advisories/dompurify-xss-via-missing-rawtext-elements-in-safe-for-xml
Credits
Camilo Vera - Fluid Attacks Cristian Vargas - Fluid Attacks Scott Moore - VulnCheck