{"id":"CVE-2026-116538","published":"2026-10-26T14:59:38Z","modified":"2026-10-31T01:25:48Z","title":"HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes","vendor":"mganss","product":"HtmlSanitizer","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00287,"percentile":0.21785,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/mganss/HtmlSanitizer/commit/96afbc818e64de7571ea17954a05d523e819c56f","tags":["patch"]},{"url":"https://github.com/mganss/HtmlSanitizer/commit/ab626e7a4f2893f7e9ec0a72779ae19c5ec439a7","tags":["patch"]},{"url":"https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L456-L465","tags":["technical-description"]},{"url":"https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L555-L583","tags":["technical-description"]},{"url":"https://joshua.hu/htmlsanitizer-sanitizedom-body-html-attribute-bypass","tags":["technical-description"]},{"url":"https://github.com/mganss/HtmlSanitizer/releases/tag/v9.2.1039","tags":["release-notes"]},{"url":"https://github.com/mganss/HtmlSanitizer/releases/tag/v10.0.1037-beta","tags":["release-notes"]},{"url":"https://github.com/mganss/HtmlSanitizer","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/htmlsanitizer-before-9.2.1039-xss-via-sanitizedom-body-and-html-attributes","tags":["third-party-advisory"]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":4.36},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"mganss","affectedVersions":[{"vendor":"mganss","product":"HtmlSanitizer","versions":["< 9.2.1039",">= 10.0.0-beta, < 10.0.1037-beta"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-31T01:25:39.139097Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-109908","exploited":false,"provenance":"source"}}