HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| mganssHtmlSanitizer |
< 9.2.1039→ 9.2.1039 ≥ 10.0.0-beta, < 10.0.1037-beta→ 10.0.1037-beta |
9.2.1039 10.0.1037-beta |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com
- web joshua.hu
- web github.com
- web nuget.org