CVE-2026-102529mganss HtmlSanitizer
High 7.5 No auth needed
- Priority
- 65
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Nov 17, 2026
- Updated
- Nov 18, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-407
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS attacks. Prior to 9.0.967 and 9.1.968-beta, HtmlSanitizer CSS style-declaration sanitization can process an attacker-controlled style attribute with quadratic cost because SanitizeStyleDeclaration repeatedly causes the complete declaration to be serialized while removing disallowed CSS properties. One unauthenticated request can occupy a synchronous application worker for seconds, and concurrent requests can saturate all workers and sustain denial of service. This issue is fixed in versions 9.0.967 and 9.1.968-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.967 |
9.0.967 |
dotnet add package HtmlSanitizer --version 9.0.967 |
| NuGet | HtmlSanitizer |
≥ 9.1.878-beta < 9.1.968-beta |
9.1.968-beta |
dotnet add package HtmlSanitizer --version 9.1.968-beta |
Per OSV / GitHub Advisories (GHSA-464h-4j8h-q5mf). Check the version in your lockfile before upgrading.
Affected products
- mganss · HtmlSanitizer
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.