CVE-2026-25543

HtmlSanitizer has a bypass via template tag

State
Published
Severity
6.3 Medium
Published
Feb 4, 2026
Updated
Feb 5, 2026
Reserved
Feb 2, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.06.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NGitHub_M

Weaknesses

  • CWE-116 Improper Encoding or Escaping of Output

Affected Products

ProductVersions
HtmlSanitizermganss
  • < 9.0.892Affected
  • < 9.1.893-betaAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.