
Find real vulnerabilities before they ship
HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS attacks. Prior to versions 9.0.892 and 9.1.893-beta, if the template tag is allowed, its contents are not sanitized. The template tag is a special tag that does not usually render its contents, unless the shadowrootmode attribute is set to open or closed. This issue has been patched in versions 9.0.892 and 9.1.893-beta.
Base Score
6.1| Package (Ecosystem) | Introduced | Fixed | Limit |
|---|---|---|---|
| HtmlSanitizer(NuGet) | 0 | 9.0.892 | N/A |
| HtmlSanitizer(NuGet) | 9.1.878-beta | 9.1.893-beta | N/A |
| Base Score | 6.3 |
|---|---|
| Vector String | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| Base Severity | Medium |
| Version | 4.0 |
| Attack Vector (AV) | NETWORK |