{"id":"CVE-2026-116538","aliases":["CVE-2026-116538"],"related":[],"kind":"vulnerability","state":"published","title":"HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-10-26T14:59:38.815Z","modified":"2026-10-31T02:17:32.557Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":2.3,"rating":"LOW"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":2.3,"rating":"LOW"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"9.2.1039","status":"affected"},{"type":"semver","introduced":"10.0.0-beta","fixed":"10.0.1037-beta","status":"affected"}],"vendor":"mganss","product":"HtmlSanitizer","package":"HtmlSanitizer","repo":"https://github.com/mganss/HtmlSanitizer","source":"cvelist"}],"references":[{"url":"https://github.com/mganss/HtmlSanitizer/commit/96afbc818e64de7571ea17954a05d523e819c56f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mganss/HtmlSanitizer/commit/ab626e7a4f2893f7e9ec0a72779ae19c5ec439a7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L456-L465","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L555-L583","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://joshua.hu/htmlsanitizer-sanitizedom-body-html-attribute-bypass","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mganss/HtmlSanitizer/releases/tag/v9.2.1039","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mganss/HtmlSanitizer/releases/tag/v10.0.1037-beta","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mganss/HtmlSanitizer","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/htmlsanitizer-before-9.2.1039-xss-via-sanitizedom-body-and-html-attributes","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Joshua Rogers"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-31T01:25:39.139Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-116538","url":"https://www.cve.org/CVERecord?id=CVE-2026-116538","licence":"CVE Terms of Use","modified":"2026-10-31T01:25:48.693Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-116538","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116538","licence":"Public domain","modified":"2026-10-31T02:17:32.557Z"}],"updatedAt":"2026-11-25T22:59:47.149Z","epss":{"score":0.00351,"percentile":0.30744,"date":"2026-12-01T12:00:22.000Z"}}