{"id":"CVE-2026-41239","state":"PUBLISHED","title":"DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode","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.","publishedAt":"2026-04-23T14:47:56.129Z","updatedAt":"2026-04-25T01:21:43.094Z","severity":{"score":6.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["cure53 DOMPurify"],"affected":[{"vendor":"cure53","product":"DOMPurify","versions":[{"version":">= 1.0.10, < 3.4.0","status":"affected"}]}],"references":["https://github.com/cure53/DOMPurify/security/advisories/GHSA-crv5-9vww-q3g8","https://github.com/cure53/DOMPurify/releases/tag/3.4.0"],"weaknesses":["CWE-79","CWE-1289"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/41xxx/CVE-2026-41239.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-41239","state":"PUBLISHED","datePublished":"2026-04-23T14:47:56.129Z","dateUpdated":"2026-04-25T01:21:43.094Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-04-18T03:47:03.135Z"},"containers":{"cna":{"title":"DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"cure53","product":"DOMPurify","versions":[{"version":">= 1.0.10, < 3.4.0","status":"affected"}]}],"references":[{"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-crv5-9vww-q3g8","name":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-crv5-9vww-q3g8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cure53/DOMPurify/releases/tag/3.4.0","name":"https://github.com/cure53/DOMPurify/releases/tag/3.4.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.8,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-1289","lang":"en","description":"CWE-1289: Improper Validation of Unsafe Equivalence in Input","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-04-23T14:47:56.129Z"},"source":{"advisory":"GHSA-crv5-9vww-q3g8","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-25T01:21:32.614113Z","id":"CVE-2026-41239","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-25T01:21:43.094Z"}}]}}}