Vulnerability

CVE-2026-65911

mediumCVSS 4.0 5.1Published 23 Jul 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Cure53 dompurify

Weakness type

References

  • github.com /cure53/DOMPurify/security/advisories/GHSA-9p3w-6h5p-cv75
  • www.vulncheck.com /advisories/dompurify-before-xss-via-add-attr-add-tags-stat…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning