๐Ÿ” CVE Alert

CVE-2026-65911

MEDIUM 6.1

DOMPurify before 3.4.0 XSS via ADD_ATTR/ADD_TAGS State Leakage

CVSS Score
6.1
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-79
Vendor cure53
Product dompurify
Published Jul 23, 2026
Stay Ahead of the Next One

Get instant alerts for cure53 dompurify

Be the first to know when new medium vulnerabilities affecting cure53 dompurify are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Affected Versions

cure53 / DOMPurify
0 < 3.4.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/cure53/DOMPurify/security/advisories/GHSA-9p3w-6h5p-cv75 vulncheck.com: https://www.vulncheck.com/advisories/dompurify-before-xss-via-add-attr-add-tags-state-leakage

Credits

๐Ÿ” offset