{"id":"CVE-2026-49978","published":"2026-07-14T20:02:46Z","modified":"2026-07-21T14:59:20Z","title":"DOMPurify IN_PLACE Sanitization Bypass via Attached Shadow Root Inside <template>.content","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.7, DOMPurify IN_PLACE sanitization could skip shadow contents attached to an element inside <template>.content, allowing attacker-controlled markup such as event handlers, JavaScript URLs, or scripts to survive and execute when an application cloned and inserted the sanitized template. This issue is fixed in version 3.4.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00404,"percentile":0.26244,"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-rp9w-3fw7-7cwq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cure53/DOMPurify/commit/ca30f070c360df162a3e3848e80e6fd3c9e74bff","tags":["x_refsource_MISC"]},{"url":"https://github.com/cure53/DOMPurify/releases/tag/3.4.7","tags":["x_refsource_MISC"]}],"priority":{"score":9.7,"factors":[{"name":"EPSS percentile","points":5.25},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"cure53","affectedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["< 3.4.6"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-21T14:59:10.987336Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"dompurify","vulnerableRanges":["<3.4.7"],"patched":["3.4.7"],"from":["GHSA-rp9w-3fw7-7cwq"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-44452","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cure53-dompurify-cve-2019-20374","parents":[{"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":["website/index.html"],"commits":["https://github.com/cure53/DOMPurify/commit/bb7739e5bccec7e1ab3dae3f3e42d02db3acaaae","https://github.com/cure53/DOMPurify/commit/ca30f070c360df162a3e3848e80e6fd3c9e74bff"],"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":["website/index.html"],"commits":["https://github.com/cure53/DOMPurify/commit/011b0c78f2a0f57ee54f5fcccb697a46ca6e63ea","https://github.com/cure53/DOMPurify/commit/ca30f070c360df162a3e3848e80e6fd3c9e74bff"],"basis":"shared function","functions":["_createHooksMap"]}]},{"from":"CVE-2026-49458","to":"CVE-2026-49978","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["website/index.html"],"commits":["https://github.com/cure53/DOMPurify/commit/bb7739e5bccec7e1ab3dae3f3e42d02db3acaaae","https://github.com/cure53/DOMPurify/commit/ca30f070c360df162a3e3848e80e6fd3c9e74bff"],"basis":"shared function","functions":["_createHooksMap"]},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"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},{"cve":"CVE-2026-65900","published":"2026-07-23","fixed":"3.4.8","kev":false},{"cve":"CVE-2026-65899","published":"2026-07-23","fixed":"3.4.9","kev":false}],"package":"npm:dompurify"}}