CVE-2026-65903
DOMPurify before 3.4.0 ADD_TAGS Function Bypasses FORBID_TAGS
- State
- Published
- Severity
- 5.1 Medium
- Published
- Jul 23, 2026
- Updated
- Jul 23, 2026
- Reserved
- Jul 23, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 5.1 Medium | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | VulnCheck |
| 3.1 | 6.1 Medium | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | VulnCheck |
Weaknesses
- CWE-697 Incorrect Comparison
Affected Products
| Product | Versions |
|---|---|
DOMPurifycure53 |
|
References
- GitHub Security Advisory (GHSA-39q2-94rc-95cp)vendor-advisory
- VulnCheck Advisory: DOMPurify before 3.4.0 ADD_TAGS Function Bypasses FORBID_TAGSthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.