{"id":"CVE-2025-15599","revision":"b385f4f249f1475089fc01f4c516e034","records":[{"revision":"b385f4f249f1475089fc01f4c516e034","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-15599","aliases":[],"title":"DOMPurify XSS via Textarea Rawtext Bypass in SAFE_FOR_XML","description":"DOMPurify 3.1.3 through 3.2.6 and 2.5.3 through 2.5.8 contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting missing textarea rawtext element validation in the SAFE_FOR_XML regex. Attackers can include closing rawtext tags like </textarea> in attribute values to break out of rawtext contexts and execute JavaScript when sanitized output is placed inside rawtext elements. The 3.x branch was fixed in 3.2.7; the 2.x branch was never patched.","state":0,"publishedAt":"2026-03-03T17:26:05.711+00:00","modifiedAt":"2026-10-08T15:21:15.147+00:00","affected":[{"ecosystem":"Vendor product","name":"DOMPurify","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"cure53\",\n                    \"product\": \"DOMPurify\",\n                    \"versions\": [\n                        {\n                            \"version\": \"3.1.3\",\n                            \"status\": \"affected\",\n                            \"lessThanOrEqual\": \"3.2.6\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"3.2.7\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"2.5.3\",\n                            \"status\": \"affected\",\n                            \"lessThanOrEqual\": \"2.5.8\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"packageURL\": \"pkg:npm/dompurify\"\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","https://github.com/cure53/DOMPurify/commit/c861f5a83fb8d90800f1680f855fee551161ac2b","https://www.vulncheck.com/advisories/dompurify-xss-via-textarea-rawtext-bypass-in-safe-for-xml"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-15599","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-15599","identifiers":["CVE-2025-15599"]},"retained":false,"historicalAffected":[]}],"coverage":[]}