# CVE-2025-15599: DOMPurify XSS via Textarea Rawtext Bypass in SAFE_FOR_XML

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-03-03T17:26:05.711Z
- Modified: 2026-10-08T16:16:50.390Z
- Also known as: GHSA-v8jm-5vwx-cfxm
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- cure53 DOMPurify: from 3.1.3 up to 3.2.6; from 2.5.3 up to 2.5.8; from 3.1.3 before 3.2.7 (not affected: 3.2.7)
- dompurify (npm): from 3.1.3 before 3.2.7; from 2.5.3 up to 2.5.8

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `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`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/cure53/DOMPurify> (package, product)
- <https://github.com/cure53/DOMPurify/commit/c861f5a83fb8d90800f1680f855fee551161ac2b> (patch, web)
- <https://www.vulncheck.com/advisories/dompurify-xss-via-textarea-rawtext-bypass-in-safe-for-xml> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-15599> (advisory)
- <https://www.vulncheck.com/advisories/dompurify-xss-via-textarea-rawtext-bypass-in-safeforxml> (web)

## Sources

- CVE List: [CVE-2025-15599](https://www.cve.org/CVERecord?id=CVE-2025-15599), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-v8jm-5vwx-cfxm](https://github.com/advisories/GHSA-v8jm-5vwx-cfxm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-15599](https://nvd.nist.gov/vuln/detail/CVE-2025-15599), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2025-15599 · Whole record: https://cve.day/CVE-2025-15599.json · Rebuilt by cve.day 2026-11-25T22:59:11.822Z
