All vulnerabilities
CVE-2026-116538

HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes

mganss HtmlSanitizer
CVSS
2.3Low
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)No scoreNo FIRST EPSS score in this snapshot yet
Fixed in9.2.1039Also 10.0.1037-betaCVE List
Published26 Oct 2026Updated 26 Oct 2026CVE List

What fixes it

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

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.

Text from CVE List

Affected versions 2

  • HtmlSanitizeraffected: all versions before 9.2.1039CVE List
  • HtmlSanitizeraffected: 10.0.0-beta before 10.0.1037-betaCVE List

References 9