{"id":"CVE-2026-65902","published":"2026-07-23T13:16:20Z","modified":"2026-10-29T21:16:29Z","title":"DOMPurify before 3.4.7 Hook Mutation Pollution via allowedTags","vendor":"cure53","product":"DOMPurify","tier":"tail","description":{"text":"DOMPurify before 3.4.7 passes direct references to the module-level DEFAULT_ALLOWED_TAGS and DEFAULT_ALLOWED_ATTR sets to the uponSanitizeElement and uponSanitizeAttribute hooks via data.allowedTags / data.allowedAttributes when sanitize is called without an explicit cfg.ALLOWED_TAGS / cfg.ALLOWED_ATTR array. A hook that mutates these fields permanently widens the default allow-lists for the lifetime of the DOMPurify instance, so all subsequent default-config sanitize calls inherit the widened defaults and attacker payloads using the poisoned tag/attribute name survive sanitization. removeAllHooks(), clearConfig(), and passing a fresh cfg do not recover the state; only constructing a new DOMPurify instance does.","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.00355,"percentile":0.30027,"provenance":"source"},"cwes":[{"id":"CWE-501","name":"Trust Boundary Violation"}],"references":[{"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-76mc-f452-cxcm","tags":["vendor-advisory"]},{"url":"https://github.com/cure53/DOMPurify/commit/7996f1dc78eb8b7922388aed75d94a9f8fad9a36","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/dompurify-before-hook-mutation-pollution-via-allowedtags","tags":["third-party-advisory"]}],"priority":{"score":10.3,"factors":[{"name":"EPSS percentile","points":6.01},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"cure53","affectedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["< 3.4.7"]}],"fixedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["3.4.7"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-23T13:58:18.807154Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"dompurify","vulnerableRanges":["<3.4.7"],"patched":["3.4.7"],"from":["GHSA-76mc-f452-cxcm"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-48271","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"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,"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-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,"link":{"from":"CVE-2026-65902","to":"CVE-2026-65900","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:dompurify","fromFixed":"3.4.7","toFixed":"3.4.8","daysApart":0}]}},{"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}],"package":"npm:dompurify"}}