CVE-2026-116538

published 26 Oct 2026 · updated 31 Oct 2026

HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes

4.7MediumCVSS 4.7EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 9.2.1039 and 10.0.1037-beta.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
mganss<9.2.1039, >=10.0.0-beta <10.0.1037-beta9.2.1039, 10.0.1037-beta

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-116538 severity on Zeptric[![CVE-2026-116538](https://zeptric.io/badge/cve/CVE-2026-116538.svg)](https://zeptric.io/cve/CVE-2026-116538)