{"id":"CVE-2026-65911","published":"2026-07-23T13:16:22Z","modified":"2026-07-27T16:20:37Z","title":"DOMPurify before 3.4.0 XSS via ADD_ATTR/ADD_TAGS State Leakage","vendor":"cure53","product":"DOMPurify","tier":"tail","description":{"text":"In DOMPurify through 3.3.3, function predicates supplied via ADD_ATTR or ADD_TAGS to DOMPurify.sanitize() persist in internal state (EXTRA_ELEMENT_HANDLING) across subsequent sanitize() calls on the same instance. If a later call on the same instance provides ADD_ATTR or ADD_TAGS as an array rather than a function, the previously set function handler is neither cleared nor overwritten, so it continues to approve attacker-controlled attributes or tags. This can allow dangerous event-handler attributes or forbidden tags (bypassing FORBID_TAGS) to survive sanitization, resulting in cross-site scripting. The vendor (Cure53) considers this an edge case outside DOMPurify's threat model; the referenced advisory lists 3.4.0 as the patched version.","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.00333,"percentile":0.19244,"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-9p3w-6h5p-cv75","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/dompurify-before-xss-via-add-attr-add-tags-state-leakage","tags":["third-party-advisory"]}],"priority":{"score":8.1,"factors":[{"name":"EPSS percentile","points":3.85},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"cure53","affectedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["< 3.4.0"]}],"fixedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["3.4.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-27T16:15:27.751831Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-48274","exploited":false,"provenance":"source"}}