CVE-2026-25543
published medium CVSS 4.0 · 6.3HtmlSanitizer has a bypass via template tag
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mganss | — | HtmlSanitizer< 9.0.892 · < 9.1.893-beta | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mganss | HtmlSanitizer | < 9.0.892 (affected)< 9.1.893-beta (affected) | GitHub_M · cna |
Weaknesses
1- CWE-116 CWE-116: Improper Encoding or Escaping of Output
References
4Provider assertions
2GitHub_M · cna
HtmlSanitizer has a bypass via template tag
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 55ba01dccd0fc6bd97d5c150b5072359fb5a6cb41aef44b61b08ffa4656722f0
- Ingested
- 23 Sep 2026, 09:06:52 UTC
- Source record
- Official CVE record