CVE-2026-116538
JSON

2.3low

HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes

Severity
2.3low CVSS:4.0 by VulnCheck
Exploit likelihood
0.35% (higher than 30% of CVEs; EPSS, by FIRST)
Published
Last changed
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

Product or packageVersionsReported by
HtmlSanitizerbefore 9.2.1039, from 10.0.0-beta before 10.0.1037-betaCVE List

All scores

VulnCheck2.3low CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
VulnCheck4.7medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

https://github.com/mganss/HtmlSanitizer/commit/96afbc818e64de7571ea17954a05d523e819c56fpatch
https://github.com/mganss/HtmlSanitizer/commit/ab626e7a4f2893f7e9ec0a72779ae19c5ec439a7patch
https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L456-L465technical-description
https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L555-L583technical-description
https://joshua.hu/htmlsanitizer-sanitizedom-body-html-attribute-bypasstechnical-description
https://github.com/mganss/HtmlSanitizer/releases/tag/v9.2.1039release-notes
https://github.com/mganss/HtmlSanitizer/releases/tag/v10.0.1037-betarelease-notes
https://github.com/mganss/HtmlSanitizerproduct
https://www.vulncheck.com/advisories/htmlsanitizer-before-9.2.1039-xss-via-sanitizedom-body-and-html-attributesthird-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-116538 changed 2026-10-31CVE Terms of Use
NVDCVE-2026-116538 changed 2026-10-31Public domain