CVE-2026-116538 HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes
LowCVSS 2.3
EPSS 0.29%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| nuget HtmlSanitizer(NuGet) | < 9.2.1039; >= 10.0.0-beta, < 10.0.1037-beta | 9.2.1039, 10.0.1037-beta | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nuget HtmlSanitizer(NuGet) | < 9.2.1039 | 9.2.1039 |
| nuget HtmlSanitizer(NuGet) | >= 10.0.0-beta, < 10.0.1037-beta | 10.0.1037-beta |
References
- Patch Commit patch
- github.com patch
- github.com technical-description
- joshua.hu technical-description
- HtmlSanitizer v9.2.1039 Release Notes release-notes
- HtmlSanitizer v10.0.1037-beta Release Notes release-notes
- github.com product
- VulnCheck Advisory: HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes third-party-advisory
- ENISA EUVD EUVD-2026-109908 third-party-advisory