
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-102529 is a denial-of-service vulnerability in HtmlSanitizer, a .NET library for sanitizing HTML to prevent XSS attacks. The flaw, dubbed "CSS Removal DoS," exists in the CSS style-declaration sanitization logic and allows unauthenticated attackers to trigger quadratic computational complexity via crafted style attributes. It affects all stable versions prior to 9.0.967 and all beta versions from 9.1.878-beta up to (but not including) 9.1.968-beta. The vulnerability was published by the maintainer on August 7, 2026, and received a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory, Github Advisory).
The root cause is classified as CWE-407 (Inefficient Algorithmic Complexity). The SanitizeStyleDeclaration method in HtmlSanitizer.cs previously removed disallowed CSS properties one at a time by calling RemoveProperty or SetProperty on the AngleSharp ICssStyleDeclaration object. Because AngleSharp.Css re-serializes the entire style attribute on every such mutation, processing a style declaration with n properties results in O(n²) serialization work. An attacker can craft an HTTP request containing a style attribute with a large number of CSS properties, causing the sanitizer to consume disproportionate CPU time. The fix (commit 6198e04) rebuilds the declaration once using a StringBuilder and assigns the result to styles.CssText in a single operation, reducing complexity to O(n) (GitHub Advisory, Fix Commit).
The vulnerability exclusively affects availability — there is no confidentiality or integrity impact. A single unauthenticated request can occupy one synchronous application worker for several seconds; concurrent requests compound CPU consumption and can saturate all available workers, sustaining a denial-of-service condition without any user interaction. Applications that accept user-supplied HTML and pass it through HtmlSanitizer with the style attribute permitted are directly at risk of becoming unresponsive (GitHub Advisory, Github Advisory).
No public proof-of-concept exploit code or in-the-wild exploitation has been reported for this vulnerability. The EPSS score is approximately 0.348% (29th percentile), indicating a low near-term exploitation probability (Github Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. However, exploitation requires no authentication, no privileges, and no user interaction, making it automatable and straightforward for any attacker who can send HTTP requests to an affected application.
style attribute permitted.style attribute with a large number of CSS property declarations (e.g., hundreds of arbitrary or disallowed properties), such as <div style="prop1:val1; prop2:val2; ... propN:valN;">.SanitizeStyleDeclaration, occupying a worker thread for seconds.style attribute payloads in request bodies.dotnet, w3wp.exe) without a corresponding increase in legitimate traffic; all worker threads reported as busy in application performance monitoring.Upgrade HtmlSanitizer to version 9.0.967 (stable) or 9.1.968-beta (or later beta), which resolve the quadratic complexity issue by rebuilding the CSS declaration in a single pass (GitHub Advisory). As an immediate workaround if upgrading is not feasible, configure HtmlSanitizer to disallow the style attribute entirely, which prevents the vulnerable code path from being reached. Version 9.1.973 is also available and includes additional dependency updates (Release v9.1.973).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."