github.com
https://github.com/cure53/DOMPurify CVE-2026-41239
MEDIUM
DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode
Record summary
CVE-2026-41239 has a selected CVSS score of 6.8 (medium).
Description
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 via template-evaluating frameworks like Vue 2. Version 3.4.0 patches the issue.
Description source: CVE List
Exploitation context
CISA SSVC decision
ExploitationNone
AutomatableNo
Technical impactTotal
CISA Coordinator · SSVC 2.0.3 · Evaluated Apr 25, 2026 · Source: CVE List
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
DOMPurifyBrowse cure53 / DOMPurify | CVE List | >= 1.0.10, < 3.4.0 | affected |
dompurifyBrowse npm / dompurify | GitHub Advisory | 1.0.10 to < 3.4.0 · Fixed in 3.4.0 | affected |
References
4github.com
https://github.com/cure53/DOMPurify/releases/tag/3.4.0 github.comConfirmation
https://github.com/cure53/DOMPurify/security/advisories/GHSA-crv5-9vww-q3g8 nvd.nist.gov
https://nvd.nist.gov/vuln/detail/CVE-2026-41239