{"id":"CVE-2026-41239","summary":"DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode","details":"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.","aliases":["GHSA-crv5-9vww-q3g8"],"modified":"2026-05-18T06:00:08.734364516Z","published":"2026-04-23T14:47:56.129Z","related":["CGA-5m7h-8v58-qfhx"],"database_specific":{"cwe_ids":["CWE-1289","CWE-79"],"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41239.json"},"references":[{"type":"WEB","url":"https://github.com/cure53/DOMPurify/releases/tag/3.4.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41239.json"},{"type":"ADVISORY","url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-crv5-9vww-q3g8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41239"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cure53/dompurify","events":[{"introduced":"b537cab466329b1b077e0e5e3c14edad2b7142f7"},{"fixed":"5b16e0b892e82b1779d62b9928b43c4c4ff290b9"}]}],"versions":["3.3.3","3.2.3","3.1.3","3.0.4","2.4.3","2.4.2","2.4.1","2.4.0","2.3.12","2.3.11","2.3.10","2.3.9","2.3.8","2.3.6","2.3.5","2.3.4","2.3.3","2.3.2","2.3.1","2.3.0","2.2.9","2.2.8","2.2.7","2.2.6","2.2.4","2.2.3","2.2.2","2.2.0","2.1.1","2.1.0","2.0.17","2.0.16","2.0.15","2.0.14","2.0.13","2.0.12","2.0.11","2.0.10","2.0.9","2.0.8","2.0.6","2.0.5","2.0.4","2.0.3","2.0.2","2.0.1","2.0.0","1.0.11","1.0.10"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-41239.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N"}]}