CVE-2026-49459
MEDIUM 6.1CVSS 3.1DOMPurify: IN_PLACE mode preserves attributes of a clobbered root element, allowing XSS via attacker-controlled root DOM
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.
- Published
- 14 Jul 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1321CWE-693CWE-79
- Also known as
- GHSA-r47g-fvhr-h676
- Sources
- NVDJSONOSV GHSA-r47g-fvhr-h676JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | cure53 | dompurifycpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:* |
< 3.4.6 | 3.4.6 |
| OSV | npm | dompurify | < 3.4.6 | 3.4.6 |
References
- 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/security/advisories/GHSA-r47g-fvhr-h676 · Exploit, Mitigation, Vendor Advisory, WEB
- https://github.com/cure53/DOMPurify · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 14 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 Jun 2026)