What’s Vulnerable › Vulnerabilities

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

How to fix

Upgrade to a fixed version: mganss HtmlSanitizer 9.2.1039, 10.0.1037-beta. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-116538 or the next vulnerability affects your stack