CVE-2026-65904: Improper Check for Unusual or Exceptional Conditions in cure53 DOMPurify
DOMPurify versions prior to 3.3.4 have a vulnerability where DOM elements originating from a different window or realm (such as an iframe's contentDocument) are not properly sanitized when using IN_PLACE mode. This occurs because a cross-realm instanceof check fails, causing the sanitizer to treat the element incorrectly and return it unsanitized, potentially leaving XSS payloads intact. The vendor considers this an edge case outside the intended threat model and has not planned a fix at the time of publication.
AI Analysis
Technical Summary
CVE-2026-65904 describes an improper check for unusual or exceptional conditions in DOMPurify through version 3.3.3. When sanitizing DOM elements passed in IN_PLACE mode that originate from a different window or realm, a cross-realm instanceof check in the private _isNode() function returns false. This causes DOMPurify to stringify the element, silently reset IN_PLACE to false, and return the unsanitized element unchanged, leaving any embedded XSS payloads intact. The vendor considers this scenario an edge case outside the threat model and has not planned a patch.
Potential Impact
The vulnerability allows DOM elements from foreign realms to bypass sanitization in IN_PLACE mode, potentially enabling cross-site scripting (XSS) attacks if such elements contain malicious payloads. However, the impact is limited by the edge-case nature of the scenario and the vendor's assessment that it falls outside the intended threat model. The CVSS score is low (2.3), reflecting limited exploitability and impact.
Mitigation Recommendations
No official fix or patch is currently planned by the vendor. Users should be aware of this edge case and avoid relying on IN_PLACE mode to sanitize DOM elements originating from different windows or realms (e.g., iframe contentDocuments). Alternative sanitization approaches or manual validation should be considered in such scenarios. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
CVE-2026-65904: Improper Check for Unusual or Exceptional Conditions in cure53 DOMPurify
Description
DOMPurify versions prior to 3.3.4 have a vulnerability where DOM elements originating from a different window or realm (such as an iframe's contentDocument) are not properly sanitized when using IN_PLACE mode. This occurs because a cross-realm instanceof check fails, causing the sanitizer to treat the element incorrectly and return it unsanitized, potentially leaving XSS payloads intact. The vendor considers this an edge case outside the intended threat model and has not planned a fix at the time of publication.
CVSS v4.0
Score 2.3low
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-65904 describes an improper check for unusual or exceptional conditions in DOMPurify through version 3.3.3. When sanitizing DOM elements passed in IN_PLACE mode that originate from a different window or realm, a cross-realm instanceof check in the private _isNode() function returns false. This causes DOMPurify to stringify the element, silently reset IN_PLACE to false, and return the unsanitized element unchanged, leaving any embedded XSS payloads intact. The vendor considers this scenario an edge case outside the threat model and has not planned a patch.
Potential Impact
The vulnerability allows DOM elements from foreign realms to bypass sanitization in IN_PLACE mode, potentially enabling cross-site scripting (XSS) attacks if such elements contain malicious payloads. However, the impact is limited by the edge-case nature of the scenario and the vendor's assessment that it falls outside the intended threat model. The CVSS score is low (2.3), reflecting limited exploitability and impact.
Mitigation Recommendations
No official fix or patch is currently planned by the vendor. Users should be aware of this edge case and avoid relying on IN_PLACE mode to sanitize DOM elements originating from different windows or realms (e.g., iframe contentDocuments). Alternative sanitization approaches or manual validation should be considered in such scenarios. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-23T11:03:13.093Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6215a29c2644c7f82072f1
Added to database: 07/23/2026, 13:22:42 UTC
Last enriched: 07/23/2026, 13:39:39 UTC
Last updated: 07/23/2026, 13:56:06 UTC
Views: 4
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.