Skip to main content
← All vulnerabilities
CVE-2026-116538EUVD-2026-109908

HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 9.2.1039, 10.0.1037-beta
None on Exploit-DB, Metasploit or GitHub

Summary

HtmlSanitizer, a .NET library used to clean untrusted HTML, is affected by a cross-site scripting flaw. Attackers can inject event-handler attributes such as onload through extra html or body tags, which can run malicious scripts in a user's browser when applications display the sanitized output.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • HtmlSanitizer

    fixed in 9.2.1039; From 10.0.0-beta · fixed in 10.0.1037-beta

References 9

GitHub · mganss/HtmlSanitizer

joshua.hu

vulncheck.com