Vulnerability · Published Mar 3, 2026 · Assigned by VulnCheck
CVE-2025-15599DOMPurify XSS via Textarea Rawtext Bypass in SAFE_FOR_XML
Medium 6.1
In plain English
A medium-severity cross-site scripting in DOMPurify from cure53. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-dompurify | no fix listed | DEBIAN-CVE-2025-15599 |
| Debian:13 | node-dompurify | no fix listed | DEBIAN-CVE-2025-15599 |
| Debian:14 | node-dompurify | 3.3.2+dfsg-1 | DEBIAN-CVE-2025-15599 |
| Ubuntu:22.04:LTS | node-dompurify | no fix listed | UBUNTU-CVE-2025-15599 |
| Ubuntu:24.04:LTS | node-dompurify | no fix listed | UBUNTU-CVE-2025-15599 |
| Ubuntu:25.10 | node-dompurify | no fix listed | UBUNTU-CVE-2025-15599 |
| Ubuntu:26.04:LTS | node-dompurify | no fix listed | UBUNTU-CVE-2025-15599 |
| Ubuntu:26.10 | node-dompurify | no fix listed | UBUNTU-CVE-2025-15599 |
| npm | dompurify | no fix listed | GHSA-v8jm-5vwx-cfxm |
| npm | dompurify | 3.2.7 | GHSA-v8jm-5vwx-cfxm |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N