CVE-2026-102529
HtmlSanitizer is a .NET library for cleaning HTML fragments and …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/mganss/HtmlSanitizer/commit/6198e0494f96707171bf606689949d5360f7e4c5
- github.com/mganss/HtmlSanitizer/releases/tag/v9.1.973
- github.com/mganss/HtmlSanitizer/security/advisories/GHSA-464h-4j8h-q5mf
- nvd.nist.gov/vuln/detail/CVE-2026-102529
- github.com/advisories/GHSA-464h-4j8h-q5mf
- nvd.nist.gov/vuln/detail/CVE-2026-102529
- cve.org/CVERecord?id=CVE-2026-102529
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.