{"id":"CVE-2026-65903","revision":"4c8588dc20d7484b97d0adaf7ac20983","records":[{"revision":"4c8588dc20d7484b97d0adaf7ac20983","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-65903","aliases":[],"title":"DOMPurify before 3.4.0 ADD_TAGS Function Bypasses FORBID_TAGS","description":"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.","state":0,"publishedAt":"2026-07-23T13:16:21.187+00:00","modifiedAt":"2026-07-23T15:35:54.823+00:00","affected":[{"ecosystem":"Vendor product","name":"DOMPurify","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"cure53\",\n                    \"product\": \"DOMPurify\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:npm/dompurify\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"3.4.0\"\n                        },\n                        {\n                            \"version\": \"3.4.0\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","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","score":5.1,"severity":"MEDIUM"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"severity":"MEDIUM"}],"references":["https://github.com/cure53/DOMPurify/security/advisories/GHSA-39q2-94rc-95cp","https://www.vulncheck.com/advisories/dompurify-before-add-tags-function-bypasses-forbid-tags"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-65903","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-65903","identifiers":["CVE-2026-65903"]},"retained":false,"historicalAffected":[]}],"coverage":[]}