Skip to content
OpenAdvisories
Medium · 4.7 CVE-2026-116538 EUVD-2026-109908GHSA-qw8f-hph4-7r4g

HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes

Published Oct 26, 2026 · Updated Oct 31, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
mganss HtmlSanitizer < 9.2.1039, 10.0.0-beta – < 10.0.1037-beta 9.2.1039

References