{"id":"CVE-2026-47423","published":"2026-07-14T19:56:02Z","modified":"2026-07-16T14:47:21Z","title":"DOMPurify XSS via `selectedcontent` re-clone","vendor":"cure53","product":"DOMPurify","tier":"tail","description":{"text":"DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. In 3.4.4, DOMPurify allowed selectedcontent by default, allowing browsers to re-clone an XSS payload after sanitization so that unsanitized markup inside <selectedcontent> is returned. This issue is fixed in version 3.4.5.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0041,"percentile":0.36115,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-87xg-pxx2-7hvx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cure53/DOMPurify/commit/011b0c78f2a0f57ee54f5fcccb697a46ca6e63ea","tags":["x_refsource_MISC"]},{"url":"https://github.com/cure53/DOMPurify/releases/tag/3.4.5","tags":["x_refsource_MISC"]}],"priority":{"score":13.0,"factors":[{"name":"EPSS percentile","points":7.22},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"cure53","affectedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":[">= 3.4.4, < 3.4.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-16T14:46:50.385097Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"dompurify","vulnerableRanges":[">=3.4.4, <3.4.5"],"patched":["3.4.5"],"from":["GHSA-87xg-pxx2-7hvx"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting bypass in DOMPurify, the DOM-based HTML, MathML, and SVG sanitizer from cure53, specifically in how it handles the selectedcontent element by default. Because that element was allowed, browsers could re-clone unsanitized markup inside it after sanitization, so an attacker can get script-bearing content returned through the sanitizer's output. An attacker can inject XSS by supplying crafted markup that DOMPurify passes through, which requires that the victim's browser process the sanitized output and that a user interact with the affected page or content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:08Z"},"euvd":{"id":"EUVD-2026-44443","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cure53-dompurify-cve-2019-20374","children":[{"from":"CVE-2026-47423","to":"CVE-2026-49458","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-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-2026-47423","to":"CVE-2026-49978","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"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/ca30f070c360df162a3e3848e80e6fd3c9e74bff"],"basis":"shared function","functions":["_createHooksMap"]}]}],"packageHistory":[{"cve":"CVE-2026-41239","published":"2026-04-23","fixed":"3.4.0","kev":false},{"cve":"CVE-2026-41240","published":"2026-04-23","fixed":"3.4.0","kev":false},{"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}],"package":"npm:dompurify"}}