Denial of Service Vulnerability in HtmlSanitizer Library by MGanss
CVE-2026-102529
What is CVE-2026-102529?
HtmlSanitizer, a .NET library designed to sanitize HTML fragments, is affected by a denial of service vulnerability due to inefficient CSS style-declaration sanitization. Prior to the fixed versions 9.0.967 and 9.1.968-beta, an attacker could exploit this inefficiency by sending crafted style attributes, causing a quadratic processing time that could occupy synchronously running workers. This can lead to significant delays, with potential saturation of application workers during concurrent attacks, ultimately resulting in a denial of service condition. It is crucial for users of HtmlSanitizer to upgrade to the latest versions to mitigate this risk.
Affected Version(s)
HtmlSanitizer < 9.0.967 < 9.0.967
HtmlSanitizer >= 9.1.878-beta, < 9.1.968-beta < 9.1.878-beta, 9.1.968-beta
