Skip to content
CVE PROGRAM SOURCE RECORD2.3 Low

CVE-2026-116538

HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

mganss HtmlSanitizer

Default version status: unaffected

  • 0 to < 9.2.1039affected
  • 10.0.0-beta to < 10.0.1037-betaaffected
pkg:nuget/HtmlSanitizer

References