Is HtmlSanitizer 7.0 vulnerable?
NuGet · 1 release from 7.0.473 to 7.0.473 · latest HtmlSanitizer is 11.0.26 · checked 18 Nov 2026
Yes: 2 known advisories
Yes. HtmlSanitizer 7.0.473, the last 7.0 release, is affected by 2 known security advisories (2 medium), including CVE-2026-25543, CVE-2023-44390. Upgrade to 9.0.892 or later to fix all of them.
dotnet add package HtmlSanitizer --version 9.0.892Is your project on an affected HtmlSanitizer?
Look after several .NET apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Advisories affecting HtmlSanitizer 7.0.473
HtmlSanitizer has a bypass via template tag
- Affected
- <9.0.892 · >=9.1.878-beta <9.1.893-beta
- Fixed in
- 9.0.892, 9.1.893-beta
HtmlSanitizer vulnerable to Cross-site Scripting in Foreign Content
- Affected
- <8.0.723 · >=8.1.0-beta <8.1.722-beta
- Fixed in
- 8.0.723, 8.1.722-beta
Which of your client projects are still on HtmlSanitizer 7.0?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact HtmlSanitizer version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other HtmlSanitizer versions
Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the NuGet registry. Refreshed daily.