All CVEs / Htmlsanitizer Project
CVE-2026-25543Htmlsanitizer Project Htmlsanitizer
Medium 6.3 No auth needed
Follow: this CVE · Htmlsanitizer Project · Htmlsanitizer Project Htmlsanitizer We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 4.0
- 6.3
- EPSS
- —
- Auth required
- No
- Published
- Feb 4, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for Htmlsanitizer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| NuGet | HtmlSanitizer |
< 9.0.892 |
9.0.892 |
dotnet add package HtmlSanitizer --version 9.0.892 |
| NuGet | HtmlSanitizer |
≥ 9.1.878-beta < 9.1.893-beta |
9.1.893-beta |
dotnet add package HtmlSanitizer --version 9.1.893-beta |
Per OSV / GitHub Advisories (GHSA-j92c-7v7g-gj3f). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| htmlsanitizer_project | htmlsanitizer | < 9.0.892 |
| htmlsanitizer_project | htmlsanitizer | ≥ 9.1.878 < 9.1.893 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Mitigation Patch Vendor Advisory
- www.nuget.org Product Release Notes
- www.nuget.org Product Release Notes