CVE-2026-25543 — Vulnerability in HtmlSanitizer — CVE Details
HtmlSanitizer has a bypass via template tag
Summary
Advisory Timeline
- First published February 3, 2026 (251 days ago).
- Last revised February 28, 2026 — 24 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package HtmlSanitizer --version 9.0.892
dotnet add package HtmlSanitizer --version 9.1.893-beta
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: nuget (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| HtmlSanitizer | nuget | 1.0.4925.29815, 1.0.4927.30873, 1.1.5243.28448, 1.1.5297.28403 (+116 more) | 9.0.892 |
| HtmlSanitizer | nuget | All versions | 9.1.893-beta |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.6 score means for each attack dimension.
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
References
- https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-j92c-7v7g-gj3fWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-25543ADVISORY
- https://github.com/mganss/HtmlSanitizer/commit/0ac53dca30ddad963f2b243669a5066933d82b81WEB
- https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/templateWEB
- https://github.com/mganss/HtmlSanitizerPACKAGE
- https://github.com/mganss/HtmlSanitizer/releases/tag/v9.0.892WEB
- https://www.nuget.org/packages/HtmlSanitizer/9.0.892WEB
- https://www.nuget.org/packages/HtmlSanitizer/9.1.893-betaWEB
Frequently Asked Questions
- What is CVE-2026-25543?
- HtmlSanitizer has a bypass via template tag This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.6/10).
- How do I check if my project is affected by CVE-2026-25543?
- CVE-2026-25543 affects HtmlSanitizer. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-25543 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2023-44390MEDIUM
HtmlSanitizer vulnerable to Cross-site Scripting in Foreign Content
- CVE-2026-106111MEDIUM
ImageSharp: EXR ZIP decoder can expose stale allocator data after a short inflate
- CVE-2026-65829MEDIUM
MPXJ: Potential Path Traversal Vulnerability in Primavera P3 PRX and SureTrak STX readers
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies