Live threats

All CVEs / Htmlsanitizer Project

CVE-2026-25543Htmlsanitizer Project Htmlsanitizer

Medium 6.3 No auth needed

Priority
53
CVSS 4.0
6.3
EPSS
—
Auth required
No
Published
Feb 4, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-116, CWE-79
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Htmlsanitizer.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
NuGet HtmlSanitizer < 9.0.892 9.0.892 dotnet add package HtmlSanitizer --version 9.0.892
NuGet HtmlSanitizer ≥ 9.1.878-beta < 9.1.893-beta 9.1.893-beta dotnet add package HtmlSanitizer --version 9.1.893-beta

Per OSV / GitHub Advisories (GHSA-j92c-7v7g-gj3f). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
htmlsanitizer_projecthtmlsanitizer< 9.0.892
htmlsanitizer_projecthtmlsanitizer≥ 9.1.878 < 9.1.893

Official sources

References

Links published by the sources. Open them with care.