CVE-2026-65900

published 23 Jul 2026 · updated 23 Jul 2026

DOMPurify before 3.4.8 Template Expression Injection via RETURN_DOM

6.1MediumCVSS 6.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.4.8.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
cure53>=3.0.0 <3.4.83.4.8

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-65900 severity on Zeptric[![CVE-2026-65900](https://zeptric.io/badge/cve/CVE-2026-65900.svg)](https://zeptric.io/cve/CVE-2026-65900)