# CVE-2026-49459: DOMPurify: IN_PLACE mode preserves attributes of a clobbered root element, allowing XSS via attacker-controlled root DOM

- 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.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-15T19:53:05.000Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-r47g-fvhr-h676
- Weaknesses: CWE-79, CWE-693, CWE-1321
- 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(root, { IN_PLACE: true }) could preserve event-handler attributes on an attacker-controlled <form> root when a descendant name clobbered properties checked by _isClobbered, because _forceRemove no-opped on the parent-less root and _sanitizeAttributes returned early. 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-r47g-fvhr-h676> (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-49459](https://www.cve.org/CVERecord?id=CVE-2026-49459), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-r47g-fvhr-h676](https://github.com/advisories/GHSA-r47g-fvhr-h676), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-49459](https://nvd.nist.gov/vuln/detail/CVE-2026-49459), Public domain, modified 2026-10-24

---

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