CVE-2026-65911
MEDIUMDOMPurify before 3.4.0 XSS via ADD_ATTR/ADD_TAGS State Leakage
Title source: cnaDescription
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.
References (2)
Core 2
Core References
Vendor Advisory vendor-advisory
GitHub Security Advisory (GHSA-9p3w-6h5p-cv75)
https://github.com/cure53/DOMPurify/security/advisories/GHSA-9p3w-6h5p-cv75
Third Party Advisory third-party-advisory
VulnCheck Advisory: DOMPurify before 3.4.0 XSS via ADD_ATTR/ADD_TAGS State Leakage
https://www.vulncheck.com/advisories/dompurify-before-xss-via-add-attr-add-tags-state-leakage
Scores
CVSS v3
6.1
EPSS
0.0019
EPSS Percentile
9.0%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-79
Status
published
Products (3)
cure53/DOMPurify
< 3.4.0
cure53/dompurify
< 3.4.0
cure53/DOMPurify
3.4.0
Published
Jul 23, 2026
Tracked Since
Jul 23, 2026