{"id":"CVE-2026-65900","published":"2026-07-23T13:16:19Z","modified":"2026-07-23T18:02:48Z","title":"DOMPurify before 3.4.8 Template Expression Injection via RETURN_DOM","vendor":"cure53","product":"DOMPurify","tier":"tail","description":{"text":"DOMPurify versions >=3.0.0 and before 3.4.8, when configured with SAFE_FOR_TEMPLATES together with a DOM output mode (RETURN_DOM, RETURN_DOM_FRAGMENT, or IN_PLACE), fail to strip template expressions (e.g. ${evil}, {{evil}}, <%evil%>) inside <template> element content. The final normalization/scrub pass (_scrubTemplateExpressions) uses a NodeIterator and node.normalize() that do not descend into template.content, so expressions that only form after adjacent text nodes merge survive sanitization. This bypasses SAFE_FOR_TEMPLATES and can allow a downstream template engine to evaluate attacker-supplied expressions. The string output path is not affected.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0031,"percentile":0.24447,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-gvmj-g25r-r7wr","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/dompurify-before-template-expression-injection-via-return-dom","tags":["third-party-advisory"]}],"priority":{"score":9.2,"factors":[{"name":"EPSS percentile","points":4.89},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"cure53","affectedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":[">= 3.0.0, < 3.4.8"]}],"fixedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["3.4.8"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-23T18:02:35.290579Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"dompurify","vulnerableRanges":[">=3.0.0, <3.4.8"],"patched":["3.4.8"],"from":["GHSA-gvmj-g25r-r7wr"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-48269","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-49459","published":"2026-07-14","fixed":"3.4.6","kev":false},{"cve":"CVE-2026-49978","published":"2026-07-14","fixed":"3.4.7","kev":false},{"cve":"CVE-2026-65902","published":"2026-07-23","fixed":"3.4.7","kev":false,"link":{"from":"CVE-2026-65902","to":"CVE-2026-65900","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:dompurify","fromFixed":"3.4.7","toFixed":"3.4.8","daysApart":0}]}},{"cve":"CVE-2026-65900","published":"2026-07-23","fixed":"3.4.8","kev":false},{"cve":"CVE-2026-65899","published":"2026-07-23","fixed":"3.4.9","kev":false,"link":{"from":"CVE-2026-65900","to":"CVE-2026-65899","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:dompurify","fromFixed":"3.4.8","toFixed":"3.4.9","daysApart":0}]}},{"cve":"CVE-2026-65898","published":"2026-07-23","fixed":"3.4.11","kev":false},{"cve":"CVE-2026-66010","published":"2026-07-24","fixed":"3.4.12","kev":false}],"package":"npm:dompurify"}}