CVE-2026-102529
Published:November 17, 2026
Updated:November 18, 2026
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.
Affected Packages
HtmlSanitizer (DOT_NET):
Affected version(s) >=9.1.878 <9.1.973.0Fix Suggestion:
Update to version 9.1.973.0HtmlSanitizer (DOT_NET):
Affected version(s) >=1.0.0.0 <9.0.967.0 || >=6.0.409.0 <9.0.967.0 || >=4.0.179.0 <9.0.967.0 || >=8.0.601.0 <9.0.967.0 || >=5.0.215.0 <9.0.967.0 || >=7.0.470.0 <9.0.967.0 || >=2.0.5449.20550 <9.0.967.0 || >=3.0.66 <9.0.967.0 || >=9.0.873.0 <9.0.967.0Fix Suggestion:
Update to version 9.0.967.0https://github.com/mganss/HtmlSanitizer.git (GITHUB):
Affected version(s) =v2.0 <v9.1.973 || >=v3.0-beta <v9.1.973 || >=v4.0.179 <v9.1.973 || >=v5.0.214 <v9.1.973 || >=v6.0.409 <v9.1.973 || >=v7.0.470 <v9.1.973 || >=v8.0.601 <v9.1.973 || >=v9.0.873 <v9.1.973Fix Suggestion:
Update to version v9.1.973htmlsanitizer (NUGET):
Affected version(s) >=2.0.5449.20550 <9.0.967 || >=7.0.470-beta <9.0.967 || >=9.0.873 <9.0.967 || >=6.0.409-beta <9.0.967 || >=4.0.179 <9.0.967 || >=5.0.215-beta <9.0.967 || >=8.0.601 <9.0.967 || >=3.0.66-beta <9.0.967 || >=1.0.4925.29815 <9.0.967Fix Suggestion:
Update to version 9.0.967htmlsanitizer (NUGET):
Affected version(s) >=9.1.878-beta <9.1.973Fix Suggestion:
Update to version 9.1.973Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Inefficient Algorithmic Complexity
EPSS
Base Score:
0.60