{"id":"CVE-2026-66010","published":"2026-07-24T12:07:57Z","modified":"2026-09-17T17:54:37Z","title":"DOMPurify before 3.4.12 Hook Bypass via CUSTOM_ELEMENT_HANDLING","vendor":"cure53","product":"DOMPurify","tier":"tail","description":{"text":"DOMPurify before 3.4.12 fails to execute afterSanitizeElements hook for custom elements allowed via CUSTOM_ELEMENT_HANDLING.tagNameCheck, allowing attributes to bypass application security policies. Attackers can preserve sensitive attributes on custom elements that later re-inject them into innerHTML sinks, creating second-order XSS gadgets.","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.00215,"percentile":0.12176,"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-c2j3-45gr-mqc4","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/dompurify-before-hook-bypass-via-custom-element-handling","tags":["third-party-advisory"]}],"priority":{"score":6.7,"factors":[{"name":"EPSS percentile","points":2.44},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"cure53","affectedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["< 3.4.12"]}],"fixedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["3.4.12"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-24T14:13:53.590696Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"dompurify","vulnerableRanges":["<3.4.12"],"patched":["3.4.12"],"from":["GHSA-c2j3-45gr-mqc4"],"provenance":"source"}],"summary":{"text":"The flaw is in DOMPurify, the cure53 HTML sanitisation library, before version 3.4.12: its afterSanitizeElements hook is not executed for custom elements permitted through CUSTOM_ELEMENT_HANDLING.tagNameCheck, so attributes on those elements can escape the application's sanitisation policy. An attacker who can supply markup that gets sanitised by DOMPurify can get attributes preserved on such custom elements, where they can later be re-injected into innerHTML sinks to form a second-order cross-site scripting gadget, and this requires user interaction to trigger.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:11Z"},"euvd":{"id":"EUVD-2026-48582","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cure53-dompurify-cve-2025-26791","parents":[{"from":"CVE-2025-26791","to":"CVE-2026-66010","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["dist/purify.cjs.js","dist/purify.es.mjs","dist/purify.js","dist/purify.min.js"],"commits":["https://github.com/cure53/DOMPurify/commit/d18ffcb554e0001748865da03ac75dd7829f0f02","https://github.com/cure53/DOMPurify/commit/a9ca1e537422319a557a9a2aa61f003b23b4a197"],"basis":"shared function","functions":["freeze"]}]}],"packageHistory":[{"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},{"cve":"CVE-2026-65898","published":"2026-07-23","fixed":"3.4.11","kev":false,"link":{"from":"CVE-2026-65898","to":"CVE-2026-66010","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:dompurify","fromFixed":"3.4.11","toFixed":"3.4.12","daysApart":1},{"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/011bc3b2fcc4be17aa76f9030e8668207717acb9","https://github.com/cure53/DOMPurify/commit/a9ca1e537422319a557a9a2aa61f003b23b4a197"],"basis":"shared file"}]}},{"cve":"CVE-2026-66010","published":"2026-07-24","fixed":"3.4.12","kev":false}],"package":"npm:dompurify"}}