CVE-2026-0540
MEDIUM EPSS 25.8%
Published Mar 3, 20264mo ago · Modified Mar 25, 20263mo ago
5.3 CVSS 4.0
Published Mar 3, 2026 4mo ago
Last Modified Mar 25, 2026 3mo ago
Description
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.
CVSS Details
Base Score
Exploitability
Impact
Vector string
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 Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction P
Scope X
Threat Intelligence
EPSS Exploit Probability
25.8% percentile
Exploit & Patch Status
No Known Exploit
No Patch Available
Weaknesses 1
CWE-79 Cross-site Scripting Injection
Affected Products 2
References 5
- fluidattacks.com https://fluidattacks.com/advisories/daft
- 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
- vulncheck.com https://www.vulncheck.com/advisories/dompurify-xss-via-missing-rawtext-elements-in-safe-for-xml
Remediation
No remediation data recorded yet
Check vendor advisories and the NVD entry for patch availability.