GitHub Advisory Database
GHSA-464h-4j8h-q5mf
HtmlSanitizer: CSS Removal DoS
Details
Impact
An unauthenticated request can occupy one synchronous application worker for seconds. Concurrent requests add CPU cost and can keep all workers busy, sustaining denial of service without user interaction.
Patches
The issue has been patched in versions 9.0.967 and 9.1.968-beta.
Workarounds
Disallow the style attribute.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| NuGet | HtmlSanitizer | All versions before 9.0.967 (fixed in 9.0.967) |
| NuGet | HtmlSanitizer | From 9.1.878-beta before 9.1.968-beta (fixed in 9.1.968-beta) |
References
- https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-464h-4j8h-q5mf
- https://nvd.nist.gov/vuln/detail/CVE-2026-102529
- https://github.com/mganss/HtmlSanitizer/commit/6198e0494f96707171bf606689949d5360f7e4c5
- https://github.com/mganss/HtmlSanitizer
- https://github.com/mganss/HtmlSanitizer/releases/tag/v9.1.973