CVE-2026-102529
HtmlSanitizer: CSS Removal DoS
High · 7.5Fix available
- CVSS
- 7.5
- EPSS
- 0.48% (p43)
- Published
- 2026-11-17
- Age
- 19d old
- Modified
- 2026-11-19
- Product
- mganss HtmlSanitizer
- Aliases
- GHSA-464h-4j8h-q5mf
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Description
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.
Fixed in
9.0.967 · 9.1.968-beta
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| NuGet | HtmlSanitizer | < 9.0.967 | 9.0.967 |
| NuGet | HtmlSanitizer | >= 9.1.878-beta, < 9.1.968-beta | 9.1.968-beta |
Sources
- NVD · first seen 19d ago · NVD terms of use
- OSV · first seen 19d ago · CC-BY 4.0
- GitHub Advisory Database · first seen 17d ago · CC-BY 4.0
- CVE List · first seen 19d ago · CVE Terms of Use
References
- https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-464h-4j8h-q5mf x_refsource_CONFIRM
- https://github.com/mganss/HtmlSanitizer/commit/6198e0494f96707171bf606689949d5360f7e4c5 x_refsource_MISC
- https://github.com/mganss/HtmlSanitizer/releases/tag/v9.1.973 x_refsource_MISC
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102529.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-102529 advisory
- https://github.com/advisories/GHSA-464h-4j8h-q5mf other