CVE-2026-65903Published Jul 23, 2026 · Jul 23Updated Oct 28
DOMPurify before 3.4.0 ADD_TAGS Function Bypasses FORBID_TAGS
cure53 DOMPurify
Medium5.1Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| dompurify npm |
|
|
Original description
DOMPurify before 3.4.0 contains a logic error in the ADD_TAGS function where short-circuit evaluation allows forbidden tags to bypass FORBID_TAGS restrictions. Attackers can craft input containing tags listed in FORBID_TAGS that are also added via ADD_TAGS function, causing them to be retained in sanitized output.
From the CVE record · VulnCheck