CVE-2026-65904

Medium

Description

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.

SeverityMedium
CVSS4.7
Exploit probability—
ProductCure53 Dompurify
PublishedJul 23, 2026
First seenJul 23, 2026
Weakness typeCWE-754CWE-754

How to fix

Update
  • cure53 dompurify3.4.4 or later

Affected products

ProductAffected versionsFixed in
cure53 dompurifyv < 3.4.43.4.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.