HtmlSanitizer: CSS Removal DoS
- State
- Published
- Severity
- 7.5 High
- Published
- Nov 17, 2026
- Updated
- Nov 18, 2026
- Reserved
- Sep 29, 2026
Description
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.
| Product | Versions |
|---|---|
| HtmlSanitizer mganss | < 9.0.967 Affected>= 9.1.878-beta, < 9.1.968-beta Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.5 High | GitHub_M |
Weaknesses
- CWE-407 Inefficient Algorithmic Complexity
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.