VulnerabilityCVE-2026-41239GHSA-crv5-9vww-q3g8WID-SEC-W-2026-1407:CVE-2026-41239WID-SEC-W-2026-3046:CVE-2026-41239WID-SEC-W-2026-3403:CVE-2026-41239WID-SEC-W-2026-4062:CVE-2026-41239
DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode
Not on CISA KEVCVSS 6.8 (v3.1)
Summary
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Starting in version 1.0.10 and prior to version 3.4.0, `SAFE_FOR_TEMPLATES` strips `{{...}}` expressions from untrusted HTML. This works in string mode but not with `RETURN_DOM` or `RETURN_DOM_FRAGMENT`, allowing XSS
See the full record, free
- Every source, score and reference in one place
- Timeline and related records
- Watch an entry and get an alert when it changes
Sources and credits
- BSI CERT-Bund Source: BSI CERT-Bund
- CVE List Source: CVE Program (cve.org)
- GitHub Advisory DB Source: GitHub Advisory Database (CC BY 4.0)
- Red Hat Source: Red Hat Security Data (CC BY 4.0)