Home / mganss / HtmlSanitizer / CVE-2026-116538
CVE-2026-116538: is it exploited, and which versions of mganss HtmlSanitizer are affected and fixed?
CVE-2026-116538 is a cross-site scripting (XSS) vulnerability in mganss HtmlSanitizer. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 19:09 UTC). Affected: HtmlSanitizer before 9.2.1039 and HtmlSanitizer from 10.0.0-beta before 10.0.1037-beta (CVE record by VulnCheck). Fixed in 9.2.1039 and 10.0.1037-beta (CVE record by VulnCheck). Severity: Low (2.3, CVSS 4.0, from VulnCheck).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 19:09 UTC, CVE record November 19, 2026, 07:05 UTC and NVD November 19, 2026, 07:05 UTC.
What is CVE-2026-116538?
HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes
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.
From the CVE record by VulnCheck, last updated October 31, 2026, 01:25 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| mganss | HtmlSanitizer | before 9.2.1039 from 10.0.0-beta before 10.0.1037-beta | 9.2.1039, 10.0.1037-beta |
As the CVE record by VulnCheck states it, last updated October 31, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-116538?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 2.3 | CVSS 4.0 | 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 | VulnCheck |
| Medium 4.7 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N | VulnCheck |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-116538 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, October 31, 2026)
- EPSS
- 0.35% probability of exploitation activity in the next 30 days, percentile 30.8 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
Where are the vendor advisories and references?
- Patch Commit patch
- https://github.com/mganss/HtmlSanitizer/commit/ab626e7a4f2893f7e9ec0a72779ae19c5ec439a7 patch
- https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L456-L465 technical-description
- https://github.com/mganss/HtmlSanitizer/blob/v9.2.995/src/HtmlSanitizer/HtmlSanitizer.cs#L555-L583 technical-description
- https://joshua.hu/htmlsanitizer-sanitizedom-body-html-attribute-bypass technical-description
- HtmlSanitizer v9.2.1039 Release Notes release-notes
- HtmlSanitizer v10.0.1037-beta Release Notes release-notes
- https://github.com/mganss/HtmlSanitizer product
- VulnCheck Advisory: HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes third-party-advisory
Who found and reported it?
- Joshua Rogers (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- October 26, 2026
- Published
- October 26, 2026, 14:59 UTC
- CVE record updated
- October 31, 2026, 01:25 UTC by VulnCheck
- NVD
- Awaiting Analysis, last modified October 31, 2026, 02:17 UTC
- Last checked
- CVE list November 19, 2026, 07:05 UTC; NVD November 19, 2026, 07:05 UTC; KEV December 3, 2026, 19:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect HtmlSanitizer?
- Nov 17, 2026CVE-2026-102529 mganss HtmlSanitizer: denial of service through slow algorithm
- Feb 4, 2026CVE-2026-25543 mganss HtmlSanitizer: improper output encoding
- Oct 5, 2023CVE-2023-44390 mganss HtmlSanitizer: cross-site scripting (XSS)
- Jan 4, 2021CVE-2020-26293 mganss HtmlSanitizer: injection
Questions about CVE-2026-116538
Is CVE-2026-116538 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 19:09 UTC. FIRST's EPSS gives it a 0.35% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of mganss HtmlSanitizer are affected by CVE-2026-116538?
HtmlSanitizer before 9.2.1039 and HtmlSanitizer from 10.0.0-beta before 10.0.1037-beta, per the CVE record by VulnCheck. The tables above give every range the sources list.
Which version fixes CVE-2026-116538?
9.2.1039 and 10.0.1037-beta, per the CVE record by VulnCheck. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-116538?
Low (2.3, CVSS 4.0, from VulnCheck). The severity table above shows each score with its source.
Where is the official record of CVE-2026-116538?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.