CVE-2026-65903 PUBLISHED

DOMPurify before 3.4.0 ADD_TAGS Function Bypasses FORBID_TAGS

Assigner: VulnCheck
Reserved: 23.07.2026 Published: 23.07.2026 Updated: 23.07.2026

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.

Metrics

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
CVSS Score: 5.1

Product Status

Vendor cure53
Product DOMPurify
Versions Default: unaffected
  • affected from 0 to 3.4.0 (excl.)
  • Version 3.4.0 is unaffected

References

Problem Types

  • Incorrect Comparison CWE