PatchSiren cyber security CVE debrief
CVE-2026-116538 mganss CVE debrief
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. This vulnerability allows attackers to 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. The issue arises from the incomplete sanitization process, which fails to address attributes on these critical elements, potentially leading to script execution.
- Vendor
- mganss
- Product
- HtmlSanitizer
- CVSS
- LOW 2.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-10-26
- Original CVE updated
- 2026-10-31
- Advisory published
- 2026-10-26
- Advisory updated
- 2026-10-31
Who should care
Defenders responsible for applications using HtmlSanitizer should assess exposure and prioritize verification and remediation efforts. This includes reviewing application code, verifying HtmlSanitizer versions, and ensuring proper sanitization of user input. Additionally, defenders should consider the potential operational impacts of this vulnerability, including the risk of script execution and potential for attackers to supply malicious input.
Why it matters
Defenders should prioritize verifying exposure in applications using HtmlSanitizer versions before 9.2.1039 or 10.0.1037-beta, and assess the risk of script execution when rendering serialized document or body outer HTML.
- Script execution when rendering serialized document or body outer HTML
- Potential for attackers to supply malicious input
- Need for verification of HtmlSanitizer version and exposure
Technical summary
The vulnerability exists in HtmlSanitizer before 9.2.1039 and 10.0 prereleases before 10.0.1037-beta, allowing attackers to 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. This issue arises from the incomplete sanitization process of the SanitizeDom function, which fails to properly address attributes on the html and body elements. As a result, defenders should prioritize verifying exposure in applications using HtmlSanitizer versions before 9.2.1039 or 10.0.1037-beta, and assess the risk of script execution when rendering serialized document or body outer HTML.
Defensive priority
Defenders should prioritize verifying exposure in applications using HtmlSanitizer versions before 9.2.1039 or 10.0.1037-beta, and assess the risk of script execution when rendering serialized document or body outer HTML.
Recommended defensive actions
- Verify HtmlSanitizer version and update to 9.2.1039 or later if possible
- Assess exposure in applications using HtmlSanitizer
- Review and update application code to ensure proper sanitization of user input
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
- Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
Evidence notes
The CVE record and source item provide details on the vulnerability, including the affected versions and a description of the issue. The vulnerability exists in HtmlSanitizer before 9.2.1039 and 10.0 prereleases before 10.0.1037-beta. The source item and CVE record provide evidence of the vulnerability and its impact. However, additional verification is required to assess the full scope of affected systems and potential operational impacts.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-116538 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-116538
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-116538 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-116538
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/116xxx/CVE-2026-116538.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://github.com/mganss/HtmlSanitizer/commit/96afbc818e64de7571ea17954a05d523e819c56f
Supplemental source - patch
-
Source reference
Unverified legacy reference
URL: https://github.com/mganss/HtmlSanitizer/commit/ab626e7a4f2893f7e9ec0a72779ae19c5ec439a7
Supplemental source - patch
-
Source reference
Unverified legacy reference
URL: https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs
Supplemental source - technical-description
-
Source reference
Unverified legacy reference
URL: https://joshua.hu/htmlsanitizer-sanitizedom-body-html-attribute-bypass
Supplemental source - technical-description
-
Source reference
Unverified legacy reference
URL: https://github.com/mganss/HtmlSanitizer/releases/tag/v9.2.1039
Supplemental source - release-notes
-
Source reference
Unverified legacy reference
URL: https://github.com/mganss/HtmlSanitizer/releases/tag/v10.0.1037-beta
Supplemental source - release-notes
-
Source reference
Unverified legacy reference
URL: https://github.com/mganss/HtmlSanitizer
Supplemental source - product
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.