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.
CVSS 6.1EPSS 0.17500000000000002%Risk 0.62
View source- Published
- 2026-07-23 14:18:06
- Affected versions
- <3.3.2
- Type
- Library
- Last modified
- 2026-07-28 15:50:27
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N