Vulnerability

CVE-2026-65900

mediumCVSS 4.0 5.1Published 23 Jul 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Cure53 dompurify

Weakness type

References

  • github.com /cure53/DOMPurify/security/advisories/GHSA-gvmj-g25r-r7wr
  • www.vulncheck.com /advisories/dompurify-before-template-expression-injection-…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning