CVE-2026-65904
Last modified
CVE-2026-65904 is a medium-severity vulnerability rated 4.7/10 on the CVSS scale. DOMPurify through 3.3.3 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.. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
Description
DOMPurify through 3.3.3 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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Cure53 | Dompurify | < 3.4.4 |
References
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-4w3q-35jp-p934Exploit, Third Party Advisory
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-4w3q-35jp-p934Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-65904?
How severe is CVE-2026-65904?
How do I fix CVE-2026-65904?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-65899DOMPurify 3.0.0 before 3.4.9 does not reset the retained Tru…6.1
- CVE-2026-6590A vulnerability was detected in ComfyUI up to 0.13.0. This i…4.3
- CVE-2026-65900DOMPurify versions >=3.0.0 and before 3.4.8, when configured…6.1
- CVE-2026-65901DOMPurify through 3.4.6 contains a cross-site scripting vuln…6.1
- CVE-2026-65902DOMPurify before 3.4.7 (affected versions <= 3.4.5) passes d…6.1
- CVE-2026-65903DOMPurify before 3.4.0 contains a logic error in the ADD_TAG…6.1
- CVE-2026-65906In JetBrains TeamCity before 2026.1.2, 2025.11.6 сode execut…10
- CVE-2026-65907In JetBrains TeamCity before 2026.1.2, 2025.11.6 code execut…9.1
- CVE-2026-65908In JetBrains PyCharm before 2026.1.4, 2026.2 arbitrary code …8.6
- CVE-2026-6591A flaw has been found in ComfyUI up to 0.13.0. Affected is t…4.3
- CVE-2026-65911In DOMPurify through 3.3.3, function predicates supplied via…6.1
- CVE-2026-65912DOMPurify before 3.3.2 contains a URI validation bypass vuln…6.1
Are you affected by CVE-2026-65904?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
