{"dataType":"CVE_RECORD","cveMetadata":{"cveId":"CVE-2026-0540","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","state":"PUBLISHED","assignerShortName":"VulnCheck","dateReserved":"2025-12-27T01:44:44.145Z","datePublished":"2026-03-03T17:26:06.621Z","dateUpdated":"2026-03-25T15:52:12.404Z"},"containers":{"cna":{"providerMetadata":{"orgId":"84fe0718-d6bb-4716-a7e8-81a6d1daa869","shortName":"Fluid Attacks","dateUpdated":"2026-03-25T15:52:12.404Z"},"title":"DOMPurify XSS via Missing Rawtext Elements in SAFE_FOR_XML","datePublic":"2026-03-24T14:30:00.000Z","problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting')","type":"CWE"}]}],"affected":[{"vendor":"cure53","product":"DOMPurify","versions":[{"status":"affected","version":"3.1.3","lessThanOrEqual":"3.3.1","versionType":"semver"},{"status":"affected","version":"2.5.3","lessThanOrEqual":"2.5.8","versionType":"semver"}],"defaultStatus":"unaffected"}],"cpeApplicability":[{"nodes":[{"operator":"OR","cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1.3","versionEndIncluding":"3.3.1"},{"vulnerable":true,"criteria":"cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*","versionStartIncluding":"2.5.3","versionEndIncluding":"2.5.8"}]}]}],"descriptions":[{"lang":"en","value":"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.","supportingMedia":[{"type":"text/html","base64":false,"value":"<p>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 &lt;/noscript&gt;&lt;img src=x onerror=alert(1)&gt; in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.</p>"}]}],"tags":["x_open-source"],"references":[{"url":"https://github.com/cure53/DOMPurify","name":"DOMPurify GitHub Repository","tags":["product"]},{"url":"https://github.com/cure53/DOMPurify/commit/302b51de22535cc90235472c52e3401bedd46f80","tags":["patch"]},{"url":"https://github.com/cure53/DOMPurify/releases/tag/3.3.2","name":"VulnCheck Advisory: DOMPurify XSS via Missing Rawtext Elements in SAFE_FOR_XML","tags":["release-notes"]},{"url":"https://fluidattacks.com/advisories/daft","tags":["third-party-advisory"]},{"url":"https://www.vulncheck.com/advisories/dompurify-xss-via-missing-rawtext-elements-in-safe-for-xml","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","subIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":5.3,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseSeverity":"MEDIUM","baseScore":6.1,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}}],"credits":[{"lang":"en","value":"Camilo Vera - Fluid Attacks","type":"finder"},{"lang":"en","value":"Cristian Vargas - Fluid Attacks","type":"finder"},{"lang":"en","value":"Scott Moore - VulnCheck","type":"finder"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"scooter"}},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-03-03T19:01:28.294008Z","id":"CVE-2026-0540","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-03-03T19:02:09.216Z"}}]},"dataVersion":"5.2"}