{"id":"CVE-2025-15599","aliases":["CVE-2025-15599","GHSA-v8jm-5vwx-cfxm"],"related":[],"kind":"vulnerability","state":"published","title":"DOMPurify XSS via Textarea Rawtext Bypass in SAFE_FOR_XML","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"DOMPurify 3.1.3 hasta 3.2.6 y 2.5.3 hasta 2.5.8 contienen una vulnerabilidad de cross-site scripting que permite a los atacantes eludir la sanitización de atributos al explotar la falta de validación del elemento rawtext de textarea en la expresión regular SAFE_FOR_XML. Los atacantes pueden incluir etiquetas de cierre de rawtext como  en los valores de los atributos para salir de los contextos de rawtext y ejecutar JavaScript cuando la salida sanitizada se coloca dentro de elementos rawtext. La rama 3.x se corrigió en 3.2.7; la rama 2.x nunca fue parcheada.","source":"nvd"}],"published":"2026-03-03T17:26:05.711Z","modified":"2026-10-08T16:16:50.390Z","severity":{"scorer":"VulnCheck","scheme":"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,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"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,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"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,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"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,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"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","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"3.1.3","lastAffected":"3.2.6","status":"affected"},{"type":"semver","version":"3.2.7","status":"unaffected"},{"type":"semver","introduced":"2.5.3","lastAffected":"2.5.8","status":"affected"}],"vendor":"cure53","product":"DOMPurify","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.1.3","status":"affected","fixed":"3.2.7"}],"ecosystem":"npm","package":"dompurify","purl":"pkg:npm/dompurify","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.5.3","status":"affected","lastAffected":"2.5.8"}],"ecosystem":"npm","package":"dompurify","purl":"pkg:npm/dompurify","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.5.3","lastAffected":"2.5.8"},{"status":"affected","introduced":"3.1.3","fixed":"3.2.7"}],"vendor":"cure53","product":"dompurify","cpe":"cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/cure53/DOMPurify","tags":["package","product"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cure53/DOMPurify/commit/c861f5a83fb8d90800f1680f855fee551161ac2b","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/dompurify-xss-via-textarea-rawtext-bypass-in-safe-for-xml","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-15599","tags":["advisory"],"sources":["ghsa"]},{"url":"https://www.vulncheck.com/advisories/dompurify-xss-via-textarea-rawtext-bypass-in-safeforxml","tags":["web"],"sources":["ghsa"]}],"credits":["Scott Moore - VulnCheck"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-03T19:05:27.449Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-15599","url":"https://www.cve.org/CVERecord?id=CVE-2025-15599","licence":"CVE Terms of Use","modified":"2026-10-08T15:21:15.147Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v8jm-5vwx-cfxm","url":"https://github.com/advisories/GHSA-v8jm-5vwx-cfxm","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:41.219Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-15599","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-15599","licence":"Public domain","modified":"2026-10-08T16:16:50.390Z"}],"updatedAt":"2026-11-25T22:59:11.822Z","epss":{"score":0.00295,"percentile":0.23839,"date":"2026-12-01T12:00:22.000Z"}}