CVE-2026-65900: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify
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.
AI Analysis
Technical Summary
DOMPurify versions >=3.0.0 and <3.4.8, when configured with SAFE_FOR_TEMPLATES and a DOM output mode (RETURN_DOM, RETURN_DOM_FRAGMENT, or IN_PLACE), fail to properly neutralize template expressions such as ${evil}, {{evil}}, or <%evil%> inside <template> element content. The sanitization bypass occurs because the final normalization and scrub pass uses a NodeIterator and node.normalize() that do not descend into the template.content subtree, allowing attacker-controlled expressions that form after adjacent text nodes merge to survive. This bypass undermines the SAFE_FOR_TEMPLATES protection and can lead to execution of attacker-supplied expressions by downstream template engines. The string output path is unaffected by this vulnerability.
Potential Impact
An attacker can inject template expressions inside <template> elements that are not sanitized, potentially leading to cross-site scripting (XSS) when the sanitized DOM is processed by a vulnerable downstream template engine. This can result in execution of arbitrary code in the context of the affected web application. The vulnerability is limited to specific DOM output modes combined with SAFE_FOR_TEMPLATES configuration and does not affect string output modes.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using DOMPurify versions >=3.0.0 and <3.4.8 with SAFE_FOR_TEMPLATES in combination with DOM output modes (RETURN_DOM, RETURN_DOM_FRAGMENT, or IN_PLACE). Consider using string output modes or upgrading to a fixed version once released by the vendor.
CVE-2026-65900: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify
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.
CVSS v4.0
Score 5.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
DOMPurify versions >=3.0.0 and <3.4.8, when configured with SAFE_FOR_TEMPLATES and a DOM output mode (RETURN_DOM, RETURN_DOM_FRAGMENT, or IN_PLACE), fail to properly neutralize template expressions such as ${evil}, {{evil}}, or <%evil%> inside <template> element content. The sanitization bypass occurs because the final normalization and scrub pass uses a NodeIterator and node.normalize() that do not descend into the template.content subtree, allowing attacker-controlled expressions that form after adjacent text nodes merge to survive. This bypass undermines the SAFE_FOR_TEMPLATES protection and can lead to execution of attacker-supplied expressions by downstream template engines. The string output path is unaffected by this vulnerability.
Potential Impact
An attacker can inject template expressions inside <template> elements that are not sanitized, potentially leading to cross-site scripting (XSS) when the sanitized DOM is processed by a vulnerable downstream template engine. This can result in execution of arbitrary code in the context of the affected web application. The vulnerability is limited to specific DOM output modes combined with SAFE_FOR_TEMPLATES configuration and does not affect string output modes.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using DOMPurify versions >=3.0.0 and <3.4.8 with SAFE_FOR_TEMPLATES in combination with DOM output modes (RETURN_DOM, RETURN_DOM_FRAGMENT, or IN_PLACE). Consider using string output modes or upgrading to a fixed version once released by the vendor.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-23T11:03:13.092Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6215a29c2644c7f82072d1
Added to database: 07/23/2026, 13:22:42 UTC
Last enriched: 07/23/2026, 13:40:20 UTC
Last updated: 07/24/2026, 03:43:25 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.