CVE-2026-116538 PUBLISHED

HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes

Assigner: VulnCheck
Reserved: 26.10.2026 Published: 26.10.2026 Updated: 26.10.2026

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.

Metrics

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
CVSS Score: 2.3

Product Status

Vendor mganss
Product HtmlSanitizer
Versions Default: unaffected
  • affected from 0 to 9.2.1039 (excl.)
  • affected from 10.0.0-beta to 10.0.1037-beta (excl.)

Credits

  • Joshua Rogers finder

References

Problem Types

  • Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CWE