All vulnerabilities

NuGet

CVE-2026-116538

HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes

Severity
Low 2.3
Published
26 Oct 2026
Last changed
31 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
9.2.1039, 10.0.1037-beta
Exploit chance
0.3% in the next 30 daysHigher than 21% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to view a page or file
CVSS vector
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
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
HtmlSanitizerNuGet · osv:NuGet:HtmlSanitizer
  • Every version before 9.2.1039
  • From 10.0.0-beta before 10.0.1037-beta

About HtmlSanitizer

Total downloads (NuGet)
152,077,970NuGet, 23 Nov 2026

Vulnerabilities in HtmlSanitizer

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
1
Known exploited
0
Search the list for HtmlSanitizer

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-116538