{"id":"CVE-2026-65898","published":"2026-07-23T13:16:17Z","modified":"2026-07-23T15:47:13Z","title":"DOMPurify before 3.4.11 Permanent Attribute Allowlist Pollution via setConfig","vendor":"cure53","product":"DOMPurify","tier":"tail","description":{"text":"DOMPurify before 3.4.11 fails to clone the ALLOWED_ATTR allowlist when setConfig() is used with an uponSanitizeAttribute hook, allowing the hook to permanently mutate the shared allowlist. Attackers can register a hook that conditionally allows dangerous attributes like onerror for trusted elements, then submit untrusted content that inherits the polluted allowlist and executes event handlers as stored XSS.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00212,"percentile":0.11734,"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-cmwh-pvxp-8882","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/dompurify-before-permanent-attribute-allowlist-pollution-via-setconfig","tags":["third-party-advisory"]}],"priority":{"score":7.4,"factors":[{"name":"EPSS percentile","points":2.35},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"cure53","affectedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["< 3.4.11"]}],"fixedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["3.4.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-23T15:47:09.886642Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"dompurify","vulnerableRanges":["<3.4.11"],"patched":["3.4.11"],"from":["GHSA-cmwh-pvxp-8882"],"provenance":"source"}],"summary":{"text":"DOMPurify before version 3.4.11, the HTML sanitisation library from cure53, fails to clone its ALLOWED_ATTR allowlist when setConfig() is used alongside an uponSanitizeAttribute hook, so the hook can permanently alter the shared allowlist. An attacker who can register such a hook, with no prior privileges and no user interaction required over the network, can get dangerous attributes such as onerror permitted on trusted elements and then have untrusted content sanitised by the polluted configuration, leading to stored cross-site scripting.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:17Z"},"euvd":{"id":"EUVD-2026-48286","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"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,"link":{"from":"CVE-2026-65899","to":"CVE-2026-65898","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:dompurify","fromFixed":"3.4.9","toFixed":"3.4.11","daysApart":0}]}},{"cve":"CVE-2026-65898","published":"2026-07-23","fixed":"3.4.11","kev":false},{"cve":"CVE-2026-66010","published":"2026-07-24","fixed":"3.4.12","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"}]}}],"package":"npm:dompurify"}}