# CVE-2026-116538: HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes

- Severity: Low 2.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-10-26T14:59:38.815Z
- Modified: 2026-10-31T02:17:32.557Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- HtmlSanitizer: before 9.2.1039; from 10.0.0-beta before 10.0.1037-beta

## Every score

- VulnCheck: CVSS:4.0 2.3 Low `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: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/mganss/HtmlSanitizer/commit/96afbc818e64de7571ea17954a05d523e819c56f> (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)
- <https://github.com/mganss/HtmlSanitizer/releases/tag/v9.2.1039> (release-notes)
- <https://github.com/mganss/HtmlSanitizer/releases/tag/v10.0.1037-beta> (release-notes)
- <https://github.com/mganss/HtmlSanitizer> (product)
- <https://www.vulncheck.com/advisories/htmlsanitizer-before-9.2.1039-xss-via-sanitizedom-body-and-html-attributes> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-116538](https://www.cve.org/CVERecord?id=CVE-2026-116538), CVE Terms of Use, modified 2026-10-31
- NVD: [CVE-2026-116538](https://nvd.nist.gov/vuln/detail/CVE-2026-116538), Public domain, modified 2026-10-31

---

Page: https://cve.day/CVE-2026-116538 · Whole record: https://cve.day/CVE-2026-116538.json · Rebuilt by cve.day 2026-11-25T22:59:47.149Z
