CVE-2026-65899: Protection Mechanism Failure in cure53 DOMPurify
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.
AI Analysis
Technical Summary
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.
CVE-2026-65899: Protection Mechanism Failure in cure53 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
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
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.
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 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.