CVE-2026-65900
Reported by VulnCheck · Published July 23, 2026
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.
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| cure53 | DOMPurify | 3.0.0, 3.4.8 |
| wolfi | nextcloud-server-33 | 0, 0, 0 |
| chainguard | langfuse-3 | 0, 0, 0 |
| chainguard | wazuh-dashboard-fips | 0, 0, 0 |
| wolfi | langfuse-3 | 0, 0, 0 |
| chainguard | langfuse-fips-3 | 0, 0, 0 |
| chainguard | kibana-9.4 | 0, 0, 0 |
| chainguard | librechat | 0, 0, 0 |
| chainguard | nextcloud-server-33 | 0, 0, 0 |
| cure53 | DOMPurify | 3.4.8, 3.0.0 |
| cure53 | dompurify | 3.0.0 |
| chainguard | nextcloud-server-34 | 0, 0, 0 |
| chainguard | wazuh-dashboard | 0, 0, 0 |
| chainguard | gitlab-rails-ce-fips-19.1 | 0, 0 |
| wolfi | nextcloud-server-32 | 0, 0, 0 |
| chainguard | nextcloud-server-32 | 0, 0, 0 |
| chainguard | gitlab-rails-ce-19.1 | 0, 0 |
Timeline
- Jun 15, 2026 CVE Published
- Jul 23, 2026 Coalition ESS Score
- Jul 25, 2026 EPSS Score
- Jul 26, 2026 Security Advisory
- Aug 7, 2026 EPSS Score
- Aug 24, 2026 EPSS Score
- Sep 5, 2026 EPSS Score
- Sep 12, 2026 EPSS Score
- Sep 18, 2026 EPSS Score
References
- GitHub Security Advisory (GHSA-gvmj-g25r-r7wr) vendor-advisory
- VulnCheck Advisory: DOMPurify before 3.4.8 Template Expression Injection via RETURN_DOM third-party-advisory