CVE-2026-65900
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.
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-07-23 |
Timeline
- 2026-06-15GitHub advisory published (GHSA-gvmj-g25r-r7wr)38 days before publication
- 2026-07-23Published by the CNA13:16 UTC
- 2026-07-23CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-gvmj-g25r-r7wr, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm dompurify | from 3.0.0 before 3.4.8 | 3.4.8 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| cure53 dompurify | from 3.0.0 before 3.4.8fixed in 3.4.8 | 3.4.8 |
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
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-65900'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-65900'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-65900'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-65900'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).