{"id":"CVE-2026-65911","aliases":["CVE-2026-65911"],"related":[],"kind":"vulnerability","state":"published","title":"DOMPurify before 3.4.0 XSS via ADD_ATTR/ADD_TAGS State Leakage","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En DOMPurify hasta la versión 3.3.3, los predicados de función suministrados a través de ADD_ATTR o ADD_TAGS a DOMPurify.sanitize() persisten en el estado interno (EXTRA_ELEMENT_HANDLING) a través de llamadas posteriores a sanitize() en la misma instancia. Si una llamada posterior en la misma instancia proporciona ADD_ATTR o ADD_TAGS como un array en lugar de una función, el gestor de función previamente establecido no se borra ni se sobrescribe, por lo que continúa aprobando atributos o etiquetas controlados por el atacante. Esto puede permitir que atributos de gestor de eventos peligrosos o etiquetas prohibidas (eludiendo FORBID_TAGS) sobrevivan a la sanitización, lo que resulta en cross-site scripting. El proveedor (Cure53) considera esto un caso límite fuera del modelo de amenaza de DOMPurify; el aviso referenciado lista la versión 3.4.0 como la versión parcheada.","source":"nvd"}],"published":"2026-07-23T13:16:22.748Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.1,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.4.0","status":"affected"},{"type":"semver","version":"3.4.0","status":"unaffected"}],"vendor":"cure53","product":"DOMPurify","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.4.0"}],"vendor":"cure53","product":"dompurify","cpe":"cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-9p3w-6h5p-cv75","tags":["exploit","third-party-advisory","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/dompurify-before-xss-via-add-attr-add-tags-state-leakage","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["offset"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-27T16:15:27.751Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-65911","url":"https://www.cve.org/CVERecord?id=CVE-2026-65911","licence":"CVE Terms of Use","modified":"2026-07-27T16:20:37.732Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-65911","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65911","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:29.930Z","epss":{"score":0.00233,"percentile":0.1513,"date":"2026-12-01T12:00:22.000Z"}}