{"id":"CVE-2026-65903","published":"2026-07-23T13:16:21Z","modified":"2026-07-23T15:35:54Z","title":"DOMPurify before 3.4.0 ADD_TAGS Function Bypasses FORBID_TAGS","vendor":"cure53","product":"DOMPurify","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00325,"percentile":0.26211,"provenance":"source"},"cwes":[{"id":"CWE-697","name":"Incorrect Comparison"}],"references":[{"url":"https://github.com/cure53/DOMPurify/security/advisories/GHSA-39q2-94rc-95cp","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/dompurify-before-add-tags-function-bypasses-forbid-tags","tags":["third-party-advisory"]}],"priority":{"score":9.5,"factors":[{"name":"EPSS percentile","points":5.24},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"cure53","affectedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["< 3.4.0"]}],"fixedVersions":[{"vendor":"cure53","product":"DOMPurify","versions":["3.4.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-23T15:35:39.880761Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"dompurify","vulnerableRanges":["<3.4.0"],"patched":["3.4.0"],"from":["GHSA-39q2-94rc-95cp"],"provenance":"source"}],"summary":{"text":"The DOMPurify library, before version 3.4.0, has a logic error in its ADD_TAGS handling where short-circuit evaluation causes tags listed in FORBID_TAGS to be retained when they are also added through ADD_TAGS. An attacker who can supply input to a page using DOMPurify with a configuration that combines these options can cause forbidden tags to survive sanitization and appear in the output, and exploitation requires that the victim user interact with the crafted content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:53Z"},"euvd":{"id":"EUVD-2026-48272","exploited":false,"provenance":"source"}}