{"id":"CVE-2026-116538","state":"PUBLISHED","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.","publishedAt":"2026-10-26T14:59:38.815Z","updatedAt":"2026-10-26T14:59:38.815Z","severity":{"score":2.3,"label":"Low","version":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["mganss HtmlSanitizer"],"affected":[{"vendor":"mganss","product":"HtmlSanitizer","packageName":"HtmlSanitizer","packageURL":"pkg:nuget/HtmlSanitizer","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"9.2.1039","versionType":"semver"},{"version":"10.0.0-beta","status":"affected","lessThan":"10.0.1037-beta","versionType":"semver"}],"collectionURL":"https://www.nuget.org/packages/HtmlSanitizer","repo":"https://github.com/mganss/HtmlSanitizer"}],"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"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:10:43.281Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/116xxx/CVE-2026-116538.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-116538","state":"PUBLISHED","datePublished":"2026-10-26T14:59:38.815Z","dateUpdated":"2026-10-26T14:59:38.815Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-26T14:30:56.846Z"},"containers":{"cna":{"title":"HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes","descriptions":[{"lang":"en","value":"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":[{"vendor":"mganss","product":"HtmlSanitizer","packageName":"HtmlSanitizer","packageURL":"pkg:nuget/HtmlSanitizer","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"9.2.1039","versionType":"semver"},{"version":"10.0.0-beta","status":"affected","lessThan":"10.0.1037-beta","versionType":"semver"}],"collectionURL":"https://www.nuget.org/packages/HtmlSanitizer","repo":"https://github.com/mganss/HtmlSanitizer"}],"references":[{"url":"https://github.com/mganss/HtmlSanitizer/commit/96afbc818e64de7571ea17954a05d523e819c56f","tags":["patch"],"name":"Patch Commit"},{"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"],"name":"HtmlSanitizer v9.2.1039 Release Notes"},{"url":"https://github.com/mganss/HtmlSanitizer/releases/tag/v10.0.1037-beta","tags":["release-notes"],"name":"HtmlSanitizer v10.0.1037-beta 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","name":"VulnCheck Advisory: HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","subAvailabilityImpact":"NONE","baseScore":2.3,"baseSeverity":"LOW"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":4.7,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-26T14:59:38.815Z"},"datePublic":"2026-08-26T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:htmlsanitizer_project:htmlsanitizer:*:*:*:*:*:*:*:*","versionEndExcluding":"9.2.1039"},{"vulnerable":true,"criteria":"cpe:2.3:a:htmlsanitizer_project:htmlsanitizer:*:*:*:*:*:*:*:*","versionStartIncluding":"10.0.0-beta","versionEndExcluding":"10.0.1037-beta"}]}]}],"credits":[{"lang":"en","value":"Joshua Rogers","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}