CVE-2026-0540
published medium CVSS 4.0 · 5.3DOMPurify XSS via Missing Rawtext Elements in SAFE_FOR_XML
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| cure53 | — | DOMPurify3.1.3 through 3.3.1 · 2.5.3 through 2.5.8 · Other versions: unaffected | Affected | Not stated | Fluid Attacks |
| SUSE / openSUSE | openSUSE-Tumbleweed | cactiaarch64 | Advisory build | 1.2.30+git306.82d5aef5-1.1 | OPENSUSE-SU-2026:10599-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cactippc64le | Advisory build | 1.2.30+git306.82d5aef5-1.1 | OPENSUSE-SU-2026:10599-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cactis390x | Advisory build | 1.2.30+git306.82d5aef5-1.1 | OPENSUSE-SU-2026:10599-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cactix86_64 | Advisory build | 1.2.30+git306.82d5aef5-1.1 | OPENSUSE-SU-2026:10599-1 |
Description
DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 2726c74, contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can include payloads like </noscript><img src=x onerror=alert(1)> in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- Fluid Attacks · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.1 | medium | Fluid Attacks · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | en: GENERAL |
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.3.1 (affected · semver)2.5.3 through 2.5.8 (affected · semver)Default: unaffected | Fluid Attacks · cna |
Weaknesses
1- CWE-79 CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting')
References
5- https://fluidattacks.com/advisories/daft
- DOMPurify GitHub Repository https://github.com/cure53/DOMPurify
- https://github.com/cure53/DOMPurify/commit/302b51de22535cc90235472c52e3401bedd46f80
- VulnCheck Advisory: DOMPurify XSS via Missing Rawtext Elements in SAFE_FOR_XML https://github.com/cure53/DOMPurify/releases/tag/3.3.2
- https://www.vulncheck.com/advisories/dompurify-xss-via-missing-rawtext-elements-in-safe-for-xml
Provider assertions
2Fluid Attacks · cna
DOMPurify XSS via Missing Rawtext Elements in SAFE_FOR_XML
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c995365a3c9242795668308c44f84359adf659f9d1cd6d5b4efbd79413a4fa7d
- Ingested
- 23 Sep 2026, 08:59:57 UTC
- Source record
- Official CVE record