Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| cure53 / DOMPurify | affected 0 before 3.3.2; unaffected 3.3.2 |
CWE
CWE-79
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
ADP enrichment
No English description supplied.
No references supplied.