Skip to main content
CVE-2026-116538VulnerabilityPublished

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

Source GCVE Database

0
Authoritative record:CVE-2026-116538· Low 2.3

Not known to be exploited · CVSS 2.3 Low : upgrade to 10.0.1037-beta or 9.2.1039 when convenient.

Data as of 26 Oct 2026, 19:44 UTC

CVSS 4.0 base score
2.3Low
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 10.0.1037-beta, 9.2.1039
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade HtmlSanitizer to 10.0.1037-beta or 9.2.1039.

Affected software

ProductAffectedFixed in
mganssHtmlSanitizerAffected
  • >=10.0.0-beta <10.0.1037-beta
Fixed in
  • 10.0.1037-beta
mganssHtmlSanitizerAffected
  • <9.2.1039
Fixed in
  • 9.2.1039
NuGetHtmlSanitizerpkg:nuget/HtmlSanitizerOther threatsAffected
  • <9.2.1039
  • >=10.0.0-beta <10.0.1037-beta
Fixed in
  • 9.2.1039
  • 10.0.1037-beta

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…