CVE-2026-65903

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.

Scoring

Severity
MEDIUM
CVSS base score
6.1
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
EPSS probability
0.33%
CWE
CWE-697
Published
2026-07-23
Last modified
2026-07-24

Affected products

Weakness type

Related vulnerabilities

Markdown version · Browse all CVEs