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 package | Versions | Reported by |
|---|---|---|
| cure53 DOMPurify | before 3.4.4 | CVE List, NVD |
All scores
| VulnCheck | 2.3low CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| VulnCheck | 4.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
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
| https://github.com/cure53/DOMPurify/security/advisories/GHSA-4w3q-35jp-p934 | exploit, third-party-advisory, vendor-advisory | |
| https://www.vulncheck.com/advisories/dompurify-before-cross-site-scripting-via-in-place-mode | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-65904 changed 2026-11-20 | CVE Terms of Use |
| NVD | CVE-2026-65904 changed 2026-11-20 | Public domain |