{"id":"CVE-2026-49459","published":"2026-07-14T20:01:44Z","modified":"2026-07-15T14:17:27Z","title":"DOMPurify: IN_PLACE mode preserves attributes of a clobbered root element, allowing XSS via attacker-controlled root DOM","vendor":"cure53","product":"DOMPurify","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00365,"percentile":0.31093,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-693","name":"Protection Mechanism Failure"},{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-r47g-fvhr-h676","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cure53/DOMPurify/commit/bb7739e5bccec7e1ab3dae3f3e42d02db3acaaae","tags":["x_refsource_MISC"]},{"url":"https://github.com/cure53/DOMPurify/releases/tag/3.4.6","tags":["x_refsource_MISC"]}],"priority":{"score":10.5,"factors":[{"name":"EPSS percentile","points":6.22},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"cure53","affectedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["< 3.4.6"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-15T14:17:03.798337Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"dompurify","vulnerableRanges":["<3.4.6"],"patched":["3.4.6"],"from":["GHSA-r47g-fvhr-h676"],"provenance":"source"}],"summary":{"text":"The flaw is in DOMPurify, the DOM-only HTML, MathML and SVG sanitizer from cure53: in versions before 3.4.6, when the sanitize call is run with IN_PLACE mode on an attacker-controlled form root, event-handler attributes can survive sanitization if a descendant element clobbers properties that the library checks for clobbering. An attacker who can supply markup to be sanitized in that configuration, and who needs a victim to interact with the page for the payload to run, can cause script to execute in the context of the page, which is a cross-site scripting outcome.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:10Z"},"euvd":{"id":"EUVD-2026-44450","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cure53-dompurify-cve-2019-20374","parents":[{"from":"CVE-2026-47423","to":"CVE-2026-49459","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:dompurify","fromFixed":"3.4.5","toFixed":"3.4.6","daysApart":0},{"kind":"same-code","provenance":"machine","files":["dist/purify.cjs.d.ts","dist/purify.es.d.mts","website/index.html"],"commits":["https://github.com/cure53/DOMPurify/commit/011b0c78f2a0f57ee54f5fcccb697a46ca6e63ea","https://github.com/cure53/DOMPurify/commit/bb7739e5bccec7e1ab3dae3f3e42d02db3acaaae"],"basis":"shared function","functions":["_createHooksMap"]}]},{"from":"CVE-2024-47875","to":"CVE-2026-49459","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["dist/purify.cjs.js","dist/purify.cjs.js.map","dist/purify.es.mjs","dist/purify.es.mjs.map","dist/purify.js"],"commits":["https://github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f","https://github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a","https://github.com/cure53/DOMPurify/commit/bb7739e5bccec7e1ab3dae3f3e42d02db3acaaae"],"basis":"shared function","functions":["seal"]}]}],"children":[{"from":"CVE-2026-49459","to":"CVE-2026-49978","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:dompurify","fromFixed":"3.4.6","toFixed":"3.4.7","daysApart":0},{"kind":"same-code","provenance":"machine","files":["dist/purify.cjs.d.ts","dist/purify.es.d.mts","website/index.html"],"commits":["https://github.com/cure53/DOMPurify/commit/bb7739e5bccec7e1ab3dae3f3e42d02db3acaaae","https://github.com/cure53/DOMPurify/commit/ca30f070c360df162a3e3848e80e6fd3c9e74bff"],"basis":"shared function","functions":["_createHooksMap"]}]}],"packageHistory":[{"cve":"CVE-2026-65903","published":"2026-07-23","fixed":"3.4.0","kev":false},{"cve":"CVE-2026-47423","published":"2026-07-14","fixed":"3.4.5","kev":false},{"cve":"CVE-2026-49458","published":"2026-07-14","fixed":"3.4.6","kev":false},{"cve":"CVE-2026-49459","published":"2026-07-14","fixed":"3.4.6","kev":false},{"cve":"CVE-2026-49978","published":"2026-07-14","fixed":"3.4.7","kev":false},{"cve":"CVE-2026-65902","published":"2026-07-23","fixed":"3.4.7","kev":false,"link":{"from":"CVE-2026-49459","to":"CVE-2026-65902","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:dompurify","fromFixed":"3.4.6","toFixed":"3.4.7","daysApart":9},{"kind":"same-code","provenance":"machine","files":["dist/purify.cjs.js","dist/purify.cjs.js.map","dist/purify.es.mjs","dist/purify.es.mjs.map","dist/purify.js"],"commits":["https://github.com/cure53/DOMPurify/commit/bb7739e5bccec7e1ab3dae3f3e42d02db3acaaae","https://github.com/cure53/DOMPurify/commit/7996f1dc78eb8b7922388aed75d94a9f8fad9a36"],"basis":"shared file"}]}},{"cve":"CVE-2026-65900","published":"2026-07-23","fixed":"3.4.8","kev":false}],"package":"npm:dompurify"}}