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.

Upgrade with:dotnet add package HtmlSanitizer --version 9.0.892

Is your project on an affected HtmlSanitizer?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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

  • MediumCVE-2026-25543GHSA-j92c-7v7g-gj3f3 Feb 2026

    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.