CVE-2026-102529
7.5HighPublished 17 Nov 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User action
- None
- Impact
- High impact on availability
- Weakness
- CWE-407
What an attacker gets
Unauthenticated attackers can trigger a denial of service by sending malicious CSS style attributes. This causes high CPU usage and saturates application workers.
Root cause
The SanitizeStyleDeclaration function uses an inefficient algorithm that results in quadratic time complexity when processing CSS styles.
Affected versions
HtmlSanitizer versions prior to 9.0.967 and 9.1.968-beta.
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fix & remediation
Update the HtmlSanitizer NuGet package to version 9.0.967 or 9.1.968-beta or later. If you cannot patch immediately, implement rate limiting on endpoints that accept user-provided HTML input.
$ dotnet add package HtmlSanitizer --version 9.1.973AI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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.