HtmlSanitizer: Denial of Service via CSS Removal
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.
Workarounds
Disallow the style attribute.
What to do
Upgrade to version 9.0.967, 9.1.968-beta, or later. If upgrading is not immediately possible, disallow the style attribute as a workaround.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| .NET (NuGet) | HtmlSanitizer | < 9.0.967, >= 9.1.878-beta, < 9.1.968-beta | 9.0.967, 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
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Weakness (CWE)
CWE-407- Platform
- .NET (NuGet)
- Package
HtmlSanitizer- Disclosed
- 19.11.2026
- Updated
- 21.11.2026 10:00
Sources and licenses · Edited or translated by DockRay; source rights and applicable licenses are retained.
OSV / GitHub Advisory Database - GHSA-464h-4j8h-q5mf - CC BY 4.0
Vulnerability history: HtmlSanitizer
All published vulnerabilities of this package (.NET (NuGet)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 4
- First → latest
- 01.2021 11.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 2
- Low 1
Disclosures per year
- 2021: 1
- 2022: 0
- 2023: 1
- 2024: 0
- 2025: 0
- 2026: 2
-
HtmlSanitizer: Denial of Service via CSS Removal this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.