Is HtmlSanitizer 7.1 vulnerable?

NuGet · 5 releases from 7.1.475 to 7.1.542 · latest HtmlSanitizer is 11.0.26 · checked 18 Nov 2026

Yes: 2 known advisories

Yes. HtmlSanitizer 7.1.542, the last 7.1 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.

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 7.1.542

  • 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
  • MediumCVE-2023-44390GHSA-43cp-6p3q-2pc44 Oct 2023

    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

Every HtmlSanitizer 7.1.x release

Affected: 7.1.475 to 7.1.542. Latest HtmlSanitizer: 11.0.26.

VersionKnown advisories
HtmlSanitizer 7.1.542CVE-2026-25543, CVE-2023-44390
HtmlSanitizer 7.1.512CVE-2026-25543, CVE-2023-44390
HtmlSanitizer 7.1.509CVE-2026-25543, CVE-2023-44390
HtmlSanitizer 7.1.488CVE-2026-25543, CVE-2023-44390
HtmlSanitizer 7.1.475CVE-2026-25543, CVE-2023-44390

Which of your client projects are still on HtmlSanitizer 7.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.