CVE-2026-65912 Details
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.
A URI validation bypass vulnerability has been identified in DOMPurify versions prior to 3.3.2. This vulnerability arises when the ADD_ATTR option is used as a predicate function through EXTRA_ELEMENT_HANDLING.attributeCheck. Attackers can craft predicates that manipulate specific attribute and tag combinations, circumventing the library's URI-safe validation. As a result, unsafe protocols like 'javascript:' can evade sanitization and execute as DOM-based cross-site scripting (XSS) when the link is clicked.
Users can upgrade to DOMPurify version 3.3.2 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/cure53/DOMPurify/security/advisories/GHSA-cjmm-f4jc-qw8r | [email protected] | Third Party Advisory |
| https://www.vulncheck.com/advisories/dompurify-before-uri-validation-bypass-via-add-attr | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| cure53 dompurify | < 3.3.2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 28, 2026 | Initial Analysis | [email protected] |
| Jul 23, 2026 | CVE Modified | CISA-ADP |
| Jul 23, 2026 | New CVE Received | [email protected] |