CVE-2026-25543 PUBLISHED

HtmlSanitizer has a bypass via template tag

Assigner: GitHub_M
Reserved: 02.02.2026 Published: 04.02.2026 Updated: 04.02.2026

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.

Metrics

CVSS 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
CVSS Score: 6.3

Product Status

Vendor mganss
Product HtmlSanitizer
Versions
  • Version < 9.0.892 is affected
  • Version < 9.1.893-beta is affected

References

Problem Types

  • CWE-116: Improper Encoding or Escaping of Output CWE