CVE-2026-49458 Details
Description
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.6, DOMPurify.sanitize(node, { IN_PLACE: true }) accepted same-origin foreign-realm DOM nodes while follow-on checks used parent-realm constructors, causing instanceof checks for forms, named node maps, document fragments, and elements to fail and skip clobber, template-content, and shadow-DOM sanitization branches so executable markup could survive. This issue is fixed in version 3.4.6.
A vulnerability in DOMPurify versions through 3.4.5 allows cross-site scripting (XSS) attacks by exploiting improper handling of foreign-realm DOM nodes during IN_PLACE sanitization. The issue arises because the sanitizer accepts nodes from same-origin iframes but fails to correctly validate them against the parent realm's constructors. This oversight allows executable markup to persist in form attributes, template content, and attached shadow roots, executing when the sanitized nodes are inserted into the document.
Users can upgrade to DOMPurify version 3.4.6 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/cure53/DOMPurify/security/advisories/GHSA-hpcv-96wg-7vj8 | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/cure53/DOMPurify/commit/bb7739e5bccec7e1ab3dae3f3e42d02db3acaaae | [email protected] | Patch |
| https://github.com/cure53/DOMPurify/releases/tag/3.4.6 | [email protected] | Release Notes |
| https://github.com/cure53/DOMPurify/security/advisories/GHSA-hpcv-96wg-7vj8 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-501 | Trust Boundary Violation | [email protected] |
| CWE-693 | Protection Mechanism Failure | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| cure53 dompurify | < 3.4.6 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 21, 2026 | Initial Analysis | [email protected] |
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 14, 2026 | New CVE Received | [email protected] |