Is HtmlSanitizer 8.1 vulnerable?
NuGet · 1 release from 8.1.870 to 8.1.870 · latest HtmlSanitizer is 11.0.26 · checked 18 Nov 2026
Yes: 1 known advisory
Yes. HtmlSanitizer 8.1.870, the last 8.1 release, is affected by 1 known security advisory (1 medium), including CVE-2026-25543. 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 8.1.870
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
Which of your client projects are still on HtmlSanitizer 8.1?
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.