CVE-2026-65904
JSON

2.3low

DOMPurify before 3.4.4 Cross-Site Scripting via IN_PLACE mode

Severity
2.3low CVSS:4.0 by VulnCheck
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

Description

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

Product or packageVersionsReported by
cure53 DOMPurifybefore 3.4.4CVE List, NVD

All scores

VulnCheck2.3low CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
VulnCheck4.7medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-754

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

DOMPurify hasta la versión 3.3.3 no logra sanear elementos DOM pasados a través del modo IN_PLACE cuando el elemento se origina de una ventana/ámbito diferente (p. ej., el contentDocument de un iframe). Una verificación instanceof entre ámbitos en la función privada _isNode() devuelve falso para nodos de ámbito externo, lo que provoca que DOMPurify convierta el elemento en cadena (resultando en ’[object HTMLDivElement]’), restablezca silenciosamente IN_PLACE a falso y devuelva el elemento no saneado sin cambios con cualquier carga útil XSS intacta.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-65904 changed 2026-11-20CVE Terms of Use
NVDCVE-2026-65904 changed 2026-11-20Public domain