Vulnerability · Published Jul 14, 2026 · Assigned by GitHub_M

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

Medium 6.1

In plain English

A medium-severity cross-site scripting in DOMPurify from cure53. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.4%top 69.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-dompurifyno fix listedDEBIAN-CVE-2026-49459
Debian:13node-dompurifyno fix listedDEBIAN-CVE-2026-49459
Debian:14node-dompurify3.4.12+dfsg-1DEBIAN-CVE-2026-49459
Ubuntu:22.04:LTSnode-dompurifyno fix listedUBUNTU-CVE-2026-49459
Ubuntu:24.04:LTSnode-dompurifyno fix listedUBUNTU-CVE-2026-49459
Ubuntu:26.04:LTSnode-dompurifyno fix listedUBUNTU-CVE-2026-49459
Ubuntu:26.10node-dompurifyno fix listedUBUNTU-CVE-2026-49459
npmdompurify3.4.6GHSA-r47g-fvhr-h676

Affected products (as reported)

VendorProductVersions
cure53 DOMPurify < 3.4.6

Weakness: CWE-79, CWE-693, CWE-1321 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References