CVE-2026-65903 MEDIUM

CVE-2026-65903: DOMPurify before 3.4.0 ADD_TAGS Function Bypasses FORBID_TAGS

Vendor Cure53
Product DOMPurify
Weakness CWE-697
Published July 23, 2026
Last update July 23, 2026

CVSS base score

5.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction
Confidentiality
Integrity

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

July 23, 2026 CVE published