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.
Advisories
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-39q2-94rc-95cp | DOMPurify's ADD_TAGS function form bypasses FORBID_TAGS due to short-circuit evaluation |
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Thu, 23 Jul 2026 13:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | DOMPurify before 3.4.0 ADD_TAGS Function Bypasses FORBID_TAGS | |
| First Time appeared |
Cure53
Cure53 dompurify |
|
| Weaknesses | CWE-697 | |
| CPEs | cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Cure53
Cure53 dompurify |
|
| References |
| |
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-07-23T13:16:21.187Z
Reserved: 2026-07-23T11:03:13.092Z
Link: CVE-2026-65903
No data.
No data.
No data.
OpenCVE Enrichment
No data.
Weaknesses
Github GHSA