{"id":"CVE-2026-65900","revision":"2790f03544c34f8185876867ce2b81c0","records":[{"revision":"2790f03544c34f8185876867ce2b81c0","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-65900","aliases":[],"title":"DOMPurify before 3.4.8 Template Expression Injection via RETURN_DOM","description":"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.","state":0,"publishedAt":"2026-07-23T13:16:19.045+00:00","modifiedAt":"2026-07-23T18:02:48.345+00:00","affected":[{"ecosystem":"Vendor product","name":"DOMPurify","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"cure53\",\n                    \"product\": \"DOMPurify\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:npm/dompurify\",\n                    \"versions\": [\n                        {\n                            \"version\": \"3.0.0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"3.4.8\"\n                        },\n                        {\n                            \"version\": \"3.4.8\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.1,"severity":"MEDIUM"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":"MEDIUM"}],"references":["https://github.com/cure53/DOMPurify/security/advisories/GHSA-gvmj-g25r-r7wr","https://www.vulncheck.com/advisories/dompurify-before-template-expression-injection-via-return-dom"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-65900","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-65900","identifiers":["CVE-2026-65900"]},"retained":false,"historicalAffected":[]}],"coverage":[]}