Skip to main content
← All vulnerabilities
CVE-2026-25543GHSA-J92C-7V7G-GJ3F

HtmlSanitizer has a bypass via template tag

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 9.0.892, 9.1.893-beta
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • mganss HtmlSanitizer

    fixed in 9.0.892; fixed in 9.1.893-beta

  • HtmlSanitizerNuGet

    fixed in 9.0.892

  • HtmlSanitizerNuGet

    From 9.1.878-beta · fixed in 9.1.893-beta

References 4

GitHub · mganss/HtmlSanitizer

nuget.org