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 in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-79"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/0xxx/CVE-2026-0540.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.5.3"
},
{
"last_affected": "2.5.8"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.1.3"
},
{
"last_affected": "3.3.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "302b51de22535cc90235472c52e3401bedd46f80"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "3.3.2",
"range": [
{
"fixed": "5e56114cb24079ce52dbc51f76e494b77afa5153"
}
],
"source": "REFERENCES_TAG"
}
]
}