Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2026-65911
VULNERABILITY

CVE-2026-65911

Common Vulnerabilities and Exposures record

MEDIUM

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.

Risk

CVSS
5.1
Severity
MEDIUM
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Timeline

Published
Jul 23, 2026 14:18
Modified
Oct 24, 2026 13:10
Last observed
Oct 24, 2026 12:59

CWE

CWE-79

Affected product identifiers

cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*

References