Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-65900: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify

0
Medium
VulnerabilityCVE-2026-65900cvecve-2026-65900
Published: 07/23/2026 (07/23/2026, 13:16:19 UTC)
Source: CVE Database V5
Vendor/Project: cure53
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Affected software

dompurify
pkg:npm/dompurify
Affected versions
=3.0.0<3.4.8

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

AILast updated: 07/23/2026, 13:40:20 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses