{"id":"CVE-2026-116538","revision":"7953302c232a4c1d85cd1c229c7cc7ab","records":[{"revision":"7953302c232a4c1d85cd1c229c7cc7ab","observedAt":"2026-10-26T16:35:30.797+00:00","statement":{"source":"cve-program","id":"CVE-2026-116538","aliases":[],"title":"HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes","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.","state":0,"publishedAt":"2026-10-26T14:59:38.815+00:00","modifiedAt":"2026-10-26T14:59:38.815+00:00","affected":[{"ecosystem":"NuGet","name":"HtmlSanitizer","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"mganss\",\n                    \"product\": \"HtmlSanitizer\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"9.2.1039\"\n                        },\n                        {\n                            \"version\": \"10.0.0-beta\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"10.0.1037-beta\"\n                        }\n                    ],\n                    \"collectionURL\": \"https://www.nuget.org/packages/HtmlSanitizer\",\n                    \"packageName\": \"HtmlSanitizer\",\n                    \"packageURL\": \"pkg:nuget/HtmlSanitizer\",\n                    \"repo\": \"https://github.com/mganss/HtmlSanitizer\"\n                }"}],"metrics":[{"system":"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,"severity":"LOW"},{"system":"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,"severity":"MEDIUM"}],"references":["https://github.com/mganss/HtmlSanitizer/commit/96afbc818e64de7571ea17954a05d523e819c56f","https://github.com/mganss/HtmlSanitizer/commit/ab626e7a4f2893f7e9ec0a72779ae19c5ec439a7","https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L456-L465","https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L555-L583","https://joshua.hu/htmlsanitizer-sanitizedom-body-html-attribute-bypass","https://github.com/mganss/HtmlSanitizer/releases/tag/v9.2.1039","https://github.com/mganss/HtmlSanitizer/releases/tag/v10.0.1037-beta","https://github.com/mganss/HtmlSanitizer","https://www.vulncheck.com/advisories/htmlsanitizer-before-9.2.1039-xss-via-sanitizedom-body-and-html-attributes"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-116538","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-116538","identifiers":["CVE-2026-116538"]},"retained":false,"historicalAffected":[]}],"coverage":[]}