CVE-2025-15599
published medium CVSS 4.0 · 5.1DOMPurify XSS via Textarea Rawtext Bypass in SAFE_FOR_XML
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| cure53 | — | DOMPurify3.1.3 through 3.2.6 (affected · semver) · 3.2.7 (unaffected · semver) · 2.5.3 through 2.5.8 (affected · semver) | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.1 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| cure53 | DOMPurify | 3.1.3 through 3.2.6 (affected · semver)3.2.7 (unaffected · semver)2.5.3 through 2.5.8 (affected · semver) | VulnCheck · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
3- DOMPurify GitHub Repository https://github.com/cure53/DOMPurify
- https://github.com/cure53/DOMPurify/commit/c861f5a83fb8d90800f1680f855fee551161ac2b
- VulnCheck Advisory: DOMPurify XSS via Textarea Rawtext Bypass in SAFE_FOR_XML https://www.vulncheck.com/advisories/dompurify-xss-via-textarea-rawtext-bypass-in-safe-for-xml
Provider assertions
2VulnCheck · cna
DOMPurify XSS via Textarea Rawtext Bypass in SAFE_FOR_XML
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2482a1a2ac0594fddd6227e8cad2d7e88b4b830e43f24749531077f7b42df17e
- Ingested
- 09 Oct 2026, 16:22:05 UTC
- Source record
- Official CVE record