CVE-2026-116538
published low CVSS 4.0 · 2.3HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mganss | — | HtmlSanitizer0 to < 9.2.1039 · 10.0.0-beta to < 10.0.1037-beta · Other versions: unaffected | Affected | Not stated | VulnCheck |
Description
HtmlSanitizer before 9.2.1039 and 10.0 prereleases before 10.0.1037-beta contains a cross-site scripting vulnerability because SanitizeDom(string) never sanitizes attributes on the html and body wrapper elements. Attackers can supply input with a second body or html tag carrying event handlers like onload, executing script when applications render serialized document or body outer HTML.
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
- 2.3 / 10
- Severity
- low
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 4.7 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/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 |
|---|---|---|---|
| mganss | HtmlSanitizer | 0 to < 9.2.1039 (affected · semver)10.0.0-beta to < 10.0.1037-beta (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
9- https://github.com/mganss/HtmlSanitizer
- https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L456-L465
- https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L555-L583
- Patch Commit https://github.com/mganss/HtmlSanitizer/commit/96afbc818e64de7571ea17954a05d523e819c56f
- https://github.com/mganss/HtmlSanitizer/commit/ab626e7a4f2893f7e9ec0a72779ae19c5ec439a7
- HtmlSanitizer v10.0.1037-beta Release Notes https://github.com/mganss/HtmlSanitizer/releases/tag/v10.0.1037-beta
- HtmlSanitizer v9.2.1039 Release Notes https://github.com/mganss/HtmlSanitizer/releases/tag/v9.2.1039
- https://joshua.hu/htmlsanitizer-sanitizedom-body-html-attribute-bypass
- VulnCheck Advisory: HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes https://www.vulncheck.com/advisories/htmlsanitizer-before-9.2.1039-xss-via-sanitizedom-body-and-html-attributes
Provider assertions
2VulnCheck · cna
HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f76b3c3e93a75b6d0494c57486d452075b485ab0efa9a3cfd2c12516c30a34d3
- Ingested
- 31 Oct 2026, 01:31:24 UTC
- Source record
- Official CVE record