DOMPurify Logic Error Allows Tag Bypass Affecting Web Security
CVE-2026-65903
5.1MEDIUM
What is CVE-2026-65903?
A logic error in the ADD_TAGS function of DOMPurify versions before 3.4.0 permits unauthorized tags to bypass the restrictions imposed by the FORBID_TAGS mechanism. This flaw enables attackers to inject potentially harmful tags into the sanitized output by crafting specific input that exploits this short-circuit evaluation, thereby undermining the integrity of web content security.
Affected Version(s)
DOMPurify 0 < 3.4.0
DOMPurify 3.4.0
