{"id":"CVE-2026-65904","aliases":["CVE-2026-65904"],"related":[],"kind":"vulnerability","state":"published","title":"DOMPurify before 3.4.4 Cross-Site Scripting via IN_PLACE mode","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-07-23T13:16:22.069Z","modified":"2026-11-20T15:17:55.573Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":2.3,"rating":"LOW"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":2.3,"rating":"LOW"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-754"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.4.4","status":"affected"}],"vendor":"cure53","product":"DOMPurify","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.4.4"}],"vendor":"cure53","product":"dompurify","cpe":"cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-4w3q-35jp-p934","tags":["exploit","third-party-advisory","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/dompurify-before-cross-site-scripting-via-in-place-mode","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["fg0x0"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-07-23T15:46:11.702Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-65904","url":"https://www.cve.org/CVERecord?id=CVE-2026-65904","licence":"CVE Terms of Use","modified":"2026-11-20T14:31:23.162Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-65904","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65904","licence":"Public domain","modified":"2026-11-20T15:17:55.573Z"}],"updatedAt":"2026-11-25T22:59:29.929Z","epss":{"score":0.00206,"percentile":0.11165,"date":"2026-12-01T12:00:22.000Z"}}