CVE-2026-25543

HtmlSanitizer has a bypass via template tag

MEDIUM
6.1
CVSS Score
Published: February 4, 2026 at 09:45 PM UTC
Updated: June 17, 2026 at 10:24 AM UTC
2 products affected across 2 vendorsHtmlsanitizerHtmlSanitizer

Using HtmlSanitizer by mganss?

Get instant alerts when new vulnerabilities affect HtmlSanitizer - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.1
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 9.0.8929.1.878 ≤ v < 9.1.893
v < 9.0.892v < 9.1.893-beta
Affected range stops below 9.0.892, so it looks safe — our inference, not a vendor statement
Affected range stops below 9.1.893-beta, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (4)

x_refsource_CONFIRMMitigationPatchVendor Advisory
Source: cverecord
https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-j92c-7v7g-gj3f
x_refsource_MISCProductRelease Notes
Source: cverecord
https://www.nuget.org/packages/HtmlSanitizer/9.0.892
x_refsource_MISCProductRelease Notes
Source: cverecord
https://www.nuget.org/packages/HtmlSanitizer/9.1.893-beta

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-116CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card