{"id":"CVE-2026-65904","published":"2026-07-23T13:16:22Z","modified":"2026-11-20T14:31:23Z","title":"DOMPurify before 3.4.4 Cross-Site Scripting via IN_PLACE mode","vendor":"cure53","product":"DOMPurify","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00266,"percentile":0.11478,"provenance":"source"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"}],"references":[{"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-4w3q-35jp-p934","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/dompurify-before-cross-site-scripting-via-in-place-mode","tags":["third-party-advisory"]}],"priority":{"score":5.6,"factors":[{"name":"EPSS percentile","points":2.3},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"cure53","affectedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["< 3.4.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-23T15:46:11.702437Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-48273","exploited":false,"provenance":"source"}}