Bug 2506426 (CVE-2026-65904) - CVE-2026-65904 DOMPurify: DOMPurify: Cross-Site Scripting via unsanitized DOM elements from different realms
Summary: CVE-2026-65904 DOMPurify: DOMPurify: Cross-Site Scripting via unsanitized DOM...
Keywords:
Status: NEW
Alias: CVE-2026-65904
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2522237 2522242 2522243 2522244 2522250 2522251 2522247 2522248
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-23 14:01 UTC by OSIDB Bzimport
Modified: 2026-08-31 08:19 UTC (History)
92 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-23 14:01:25 UTC
DOMPurify through 3.3.3 fails to sanitize DOM elements passed via IN_PLACE mode when the element originates from a different window/realm (e.g., an iframe's contentDocument). A cross-realm instanceof check in the private _isNode() function returns false for foreign-realm nodes, causing DOMPurify to stringify the element (yielding '[object HTMLDivElement]'), silently reset IN_PLACE to false, and return the unsanitized element unchanged with any XSS payloads intact. The vendor considers this an edge case outside DOMPurify's threat model and, at time of publication, no fix was planned.


Note You need to log in before you can comment on or make changes to this bug.