CVE-2026-116538: low-severity vulnerability in mganss HtmlSanitizer
HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
8Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 2.3epss 0.3%
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.
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
Affected products
mganss · HtmlSanitizerRelated CVEs — mganss HtmlSanitizer
In the same product, most dangerous first.
References
https://github.com/mganss/HtmlSanitizerhttps://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L456-L465https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L555-L583https://github.com/mganss/HtmlSanitizer/commit/96afbc818e64de7571ea17954a05d523e819c56fhttps://github.com/mganss/HtmlSanitizer/commit/ab626e7a4f2893f7e9ec0a72779ae19c5ec439a7https://github.com/mganss/HtmlSanitizer/releases/tag/v10.0.1037-betahttps://github.com/mganss/HtmlSanitizer/releases/tag/v9.2.1039https://joshua.hu/htmlsanitizer-sanitizedom-body-html-attribute-bypasshttps://www.vulncheck.com/advisories/htmlsanitizer-before-9.2.1039-xss-via-sanitizedom-body-and-html-attributes