# CVE-2026-49458: DOMPurify: Cross-realm IN_PLACE sanitization leaves executable markup intact via realm-bound `instanceof` checks

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A: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.38%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-15T19:56:35.000Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-hpcv-96wg-7vj8
- Weaknesses: CWE-79, CWE-501, CWE-693
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- cure53 DOMPurify: < 3.4.6; before 3.4.6
- dompurify (npm): before 3.4.6

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/cure53/DOMPurify/security/advisories/GHSA-hpcv-96wg-7vj8> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/cure53/DOMPurify/commit/bb7739e5bccec7e1ab3dae3f3e42d02db3acaaae> (patch)
- <https://github.com/cure53/DOMPurify/releases/tag/3.4.6> (release-notes)
- <https://github.com/cure53/DOMPurify> (package)

## Sources

- CVE List: [CVE-2026-49458](https://www.cve.org/CVERecord?id=CVE-2026-49458), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-hpcv-96wg-7vj8](https://github.com/advisories/GHSA-hpcv-96wg-7vj8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-49458](https://nvd.nist.gov/vuln/detail/CVE-2026-49458), Public domain, modified 2026-10-24

---

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