CVE-2026-65904

published 23 Jul 2026 · updated 20 Nov 2026

DOMPurify before 3.4.4 Cross-Site Scripting via IN_PLACE mode

5.7MediumCVSS 4.7EPSS 0%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.4.4.

DOMPurify before 3.4.4 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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
cure53dompurify<3.4.43.4.4
cure53<3.4.43.4.4

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-65904 severity on Zeptric[![CVE-2026-65904](https://zeptric.io/badge/cve/CVE-2026-65904.svg)](https://zeptric.io/cve/CVE-2026-65904)