URI Validation Bypass in DOMPurify Affects Security
CVE-2026-65912
5.1MEDIUM
What is CVE-2026-65912?
DOMPurify versions prior to 3.3.2 are susceptible to a URI validation bypass vulnerability due to the ADD_ATTR predicate function in EXTRA_ELEMENT_HANDLING.attributeCheck. This weakness allows attackers to manipulate the sanitization process by providing a predicate that accepts specific tag and attribute combinations. Consequently, unsafe protocols, such as 'javascript:', can evade sanitization processes, leading to potential DOM-based cross-site scripting (XSS) attacks when links are activated.
Affected Version(s)
DOMPurify 0 < 3.3.2
DOMPurify 3.3.2
