{"schema":"threatline.record/2","record":{"id":"CVE-2026-116538","aliases":[],"summary":"HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes","details":"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.","categories":["Unclassified"],"product":"HtmlSanitizer","vendor":"mganss","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-116538","source_modified_at":"2026-10-26T14:59:38.815Z","fetched_at":"2026-10-26T19:10:57.178988Z","product":"HtmlSanitizer","vendor":"mganss","versions":[{"version":"0","status":"affected","versionType":"semver","lessThan":"9.2.1039"},{"version":"10.0.0-beta","status":"affected","versionType":"semver","lessThan":"10.0.1037-beta"}],"defaultStatus":"unaffected"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-116538","source_modified_at":"2026-10-26T14:59:38.815Z","fetched_at":"2026-10-26T19:10:57.178988Z","package":{"name":"HtmlSanitizer","ecosystem":null},"version":"9.2.1039","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-116538","source_modified_at":"2026-10-26T14:59:38.815Z","fetched_at":"2026-10-26T19:10:57.178988Z","package":{"name":"HtmlSanitizer","ecosystem":null},"version":"10.0.1037-beta","basis":"first unaffected version stated in the CVE record"}],"cvss":2.3,"severity":"Low","kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-10-26T14:59:38.815Z","modified_at":"2026-10-26T14:59:38.815Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-116538","fetched_at":"2026-10-26T19:10:57.178988Z","source_modified_at":"2026-10-26T14:59:38.815Z"}],"sources":["CVE List"],"references":[{"source":"CVE List","url":"https://github.com/mganss/HtmlSanitizer/commit/96afbc818e64de7571ea17954a05d523e819c56f","tags":["patch"]},{"source":"CVE List","url":"https://github.com/mganss/HtmlSanitizer/commit/ab626e7a4f2893f7e9ec0a72779ae19c5ec439a7","tags":["patch"]},{"source":"CVE List","url":"https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L456-L465","tags":["technical-description"]},{"source":"CVE List","url":"https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L555-L583","tags":["technical-description"]},{"source":"CVE List","url":"https://joshua.hu/htmlsanitizer-sanitizedom-body-html-attribute-bypass","tags":["technical-description"]},{"source":"CVE List","url":"https://github.com/mganss/HtmlSanitizer/releases/tag/v9.2.1039","tags":["release-notes"]},{"source":"CVE List","url":"https://github.com/mganss/HtmlSanitizer/releases/tag/v10.0.1037-beta","tags":["release-notes"]},{"source":"CVE List","url":"https://github.com/mganss/HtmlSanitizer","tags":["product"]},{"source":"CVE List","url":"https://www.vulncheck.com/advisories/htmlsanitizer-before-9.2.1039-xss-via-sanitizedom-body-and-html-attributes","tags":["third-party-advisory"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":null,"confidence":"unknown","reviewed":false},"change_timestamp":"2026-10-26T14:59:38.815Z","content_hash":"b8d2cb878c560c84583b19f86338817450801ea5393b7caa90c828371e80e1d6"}}
