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…
EPSS 0.3%top 81%

CVE-2026-65899: Protection Mechanism Failure in cure53 DOMPurify

0
Medium
VulnerabilityCVE-2026-65899cvecve-2026-65899
Published: 07/23/2026 (07/23/2026, 13:16:18 UTC)
Source: CVE Database V5
Vendor/Project: cure53
Product: DOMPurify

Description

DOMPurify 3.0.0 before 3.4.9 does not reset the retained Trusted Types policy when clearConfig() is called, so a DOMPurify instance reused across trust boundaries stays bound to a previously supplied TRUSTED_TYPES_POLICY. A later caller that requests RETURN_TRUSTED_TYPE output receives a TrustedHTML object created by the old (potentially unsafe) policy rather than a clean default, which can lead to script execution at a Trusted Types sink. Passing TRUSTED_TYPES_POLICY: null on the later call also does not clear the retained policy.

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.4.9 >=3.0.0

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/30/2026, 22:32:41 UTC

Technical Analysis

CVE-2026-65899 describes a vulnerability in DOMPurify versions >=3.0.0 and <3.4.9 where the clearConfig() method fails to reset the retained Trusted Types policy. Consequently, when a DOMPurify instance is reused across different trust boundaries, it remains bound to the previously supplied TRUSTED_TYPES_POLICY. If a later caller requests RETURN_TRUSTED_TYPE output, they receive a TrustedHTML object created by the old policy rather than a clean default. This behavior can lead to script execution at a Trusted Types sink, undermining the intended protection mechanism. Attempts to clear the policy by passing TRUSTED_TYPES_POLICY: null are ineffective.

Potential Impact

The vulnerability can lead to script execution in contexts expecting Trusted Types enforcement, due to the reuse of an outdated and potentially unsafe Trusted Types policy. This undermines the security guarantees of DOMPurify when used across different trust boundaries, potentially allowing cross-site scripting or similar script injection attacks. The CVSS 4.0 base score is 5.1 (medium severity), reflecting network attack vector, low complexity, no privileges required, user interaction needed, and limited scope and impact.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid reusing DOMPurify instances across trust boundaries or ensure that a new instance is created per trust boundary. Passing TRUSTED_TYPES_POLICY: null does not clear the retained policy and is not an effective mitigation. Monitor vendor communications for an official fix or update.

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: 6a6215a29c2644c7f82072cb

Added to database: 07/23/2026, 13:22:42 UTC

Last enriched: 07/30/2026, 22:32:41 UTC

Last updated: 09/05/2026, 10:52:11 UTC

Views: 71

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