What’s Vulnerable › Vulnerabilities
CVE-2026-65912: DOMPurify before 3.3.2 URI Validation Bypass via ADD_ATTR
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-23 · updated 2026-10-24
- Weakness: CWE-79
Description
DOMPurify before 3.3.2 contains a URI validation bypass vulnerability when ADD_ATTR is provided as a predicate function via EXTRA_ELEMENT_HANDLING.attributeCheck. Attackers can supply a predicate that accepts specific attribute and tag combinations to bypass URI-safe validation, allowing unsafe protocols like javascript: to survive sanitization and execute as DOM-based XSS when the link is activated.
Affected products
- cure53 DOMPurify: before 3.3.2 — fixed in 3.3.2
How to fix
Upgrade to a fixed version: cure53 DOMPurify 3.3.2. Check the vendor advisory for mitigations.
References
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-cjmm-f4jc-qw8r
- https://www.vulncheck.com/advisories/dompurify-before-uri-validation-bypass-via-add-attr
Get alerted when CVE-2026-65912 or the next vulnerability affects your stack