CVE-2026-65911: DOMPurify - Stored XSS
- Cve: CVE-2026-65911
- Name: DOMPurify - Stored XSS
- 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.
- Impact: Attackers can inject malicious scripts bypassing sanitization, leading to cross-site scripting and potential client-side code execution.
- Remediation: Update to version 3.4.0 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: stored_xss, client_script_exec
- Requirements: Attacker must reuse the same DOMPurify instance with crafted ADD_ATTR or ADD_TAGS inputs
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00333
- Epss percentile: 0.26951
- Assignee: [email protected]
- Published at: 2026-07-23T14:18:06Z
- Age in days: 124
- Modified at: 2026-10-24T13:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-65911
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirement type
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Hackerone
- Reports: 2
- Rank: 3806
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/cure53/DOMPurify/security/advisories/GHSA-9p3w-6h5p-cv75 | nvd | 2026-07-23 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/cure53/DOMPurify/security/advisories/GHSA-9p3w-6h5p-cv75 | nvd | Exploit, Third Party Advisory |
| https://www.vulncheck.com/advisories/dompurify-before-xss-via-add-attr-add-tags-state-leakage | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| cure53:dompurify | < 3.4.0 | no | nvd | /v1/products/cure53/dompurify |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| cure53/dompurify | security_advisory | yes | /v1/repositories/cure53/dompurify |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-07-23
- Remote: yes
- Hackerone reports: 2
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, exposed hosts