CVE-2026-116538
HtmlSanitizer before 9.2.1039 and 10.0 prereleases before …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/mganss/HtmlSanitizer
- github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L456-L465
- github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L555-L583
- github.com/mganss/HtmlSanitizer/commit/96afbc818e64de7571ea17954a05d523e819c56f
- github.com/mganss/HtmlSanitizer/commit/ab626e7a4f2893f7e9ec0a72779ae19c5ec439a7
- github.com/mganss/HtmlSanitizer/releases/tag/v10.0.1037-beta
- github.com/mganss/HtmlSanitizer/releases/tag/v9.2.1039
- joshua.hu/htmlsanitizer-sanitizedom-body-html-attribute-bypass
- nvd.nist.gov/vuln/detail/CVE-2026-116538
- cve.org/CVERecord?id=CVE-2026-116538
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.