# CVE-2026-65904: DOMPurify before 3.4.4 Cross-Site Scripting via IN_PLACE mode

- Severity: Low 2.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-23T13:16:22.069Z
- Modified: 2026-11-20T15:17:55.573Z
- Weaknesses: CWE-754
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- cure53 DOMPurify: before 3.4.4

## Every score

- VulnCheck: CVSS:4.0 2.3 Low `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: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`

## 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

- CVE List: [CVE-2026-65904](https://www.cve.org/CVERecord?id=CVE-2026-65904), CVE Terms of Use, modified 2026-11-20
- NVD: [CVE-2026-65904](https://nvd.nist.gov/vuln/detail/CVE-2026-65904), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-65904 · Whole record: https://cve.day/CVE-2026-65904.json · Rebuilt by cve.day 2026-11-25T22:59:29.929Z
