Vulnerability

CVE-2026-25543

mediumCVSS 4.0 6.3Published 4 Feb 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Htmlsanitizer Project htmlsanitizer

Weakness type

References

  • github.com /mganss/HtmlSanitizer/commit/0ac53dca30ddad963f2b243669a506…
  • github.com /mganss/HtmlSanitizer/security/advisories/GHSA-j92c-7v7g-gj…
  • www.nuget.org /packages/HtmlSanitizer/9.0.892
  • www.nuget.org /packages/HtmlSanitizer/9.1.893-beta

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning