Technical impact
HtmlSanitizer is a .NET library that removes disallowed CSS properties from style attributes. When an attacker supplies a style string with many properties, the sanitizer repeatedly serializes the entire declaration while stripping forbidden entries, leading to a quadratic processing cost. The routine can occupy an application thread for seconds, and simultaneous requests can exhaust all worker threads, causing a denial of service. The vulnerability does not require authentication and relies on normal use of the sanitizer in web applications.
Affected Systems
The affected product is mganss:HtmlSanitizer. Versions earlier than 9.0.967 and earlier than 9.1.968‑beta are susceptible to the CSS removal denial of service issue.
Risk and Exploitability
The CVSS score of 7.5 classifies this as a high‑severity vulnerability, and the EPSS score is currently unavailable. It is not listed in the CISA KEV catalog. Attackers can exploit this weakness by sending unauthenticated HTTP requests that contain malicious style attributes, and the effect can be amplified by multiple concurrent requests to saturate worker pools. The risk is significant for applications that process untrusted HTML input without additional safeguards.