CVE-2026-102529: HtmlSanitizer: CSS Removal DoS
Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-464h-4j8h-q5mf
Summary
A denial of service vulnerability in HtmlSanitizer allows unauthenticated attackers to cause high CPU consumption via CSS removal processing. All engineering teams and maintainers using vulnerable versions of the HtmlSanitizer package should update immediately.
Who is affected
Affected deployments of applications using vulnerable HtmlSanitizer versions are susceptible to unauthenticated remote denial of service attacks. Concurrent requests can consume all synchronous application workers by exploiting CPU cost during CSS removal, requiring no user interaction.
Exploitability
The vulnerability is network-exploitable with low attack complexity requiring no privileges or user interaction, resulting in high availability impact (CVSS 7.5). The EPSS score is 0.003 and CISA Known Exploited Vulnerabilities status is no.
Remediation
- Upgrade the NuGet HtmlSanitizer package to version 9.0.967 or version 9.1.968-beta.
- Disallow the style attribute as a temporary workaround if updating is not immediately possible.
How to check your project
- Check project dependency files (such as packages.csproj or packages.config) for references to the HtmlSanitizer NuGet package.
- Verify if the installed HtmlSanitizer version falls within the ranges introduced before 9.0.967 or between 9.1.878-beta and 9.1.968-beta.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| NuGet | HtmlSanitizer |
>= 0, < 9.0.967 | 9.0.967 | dotnet add package HtmlSanitizer --version 9.0.967 |
| NuGet | HtmlSanitizer |
>= 9.1.878-beta, < 9.1.968-beta | 9.1.968-beta | dotnet add package HtmlSanitizer --version 9.1.968-beta |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
FAQ
What causes the Denial of Service in HtmlSanitizer?
The denial of service is caused by high CPU consumption during CSS removal processing when handling unauthenticated requests.
Are user interactions required to exploit this vulnerability?
No, user interaction is not required as unauthenticated requests can directly trigger the issue.
What are the fixed versions for this vulnerability?
The fixed versions are 9.0.967 and 9.1.968-beta.
Original advisory description
References
- WEB https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-464h-4j8h-q5mf
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-102529
- WEB https://github.com/mganss/HtmlSanitizer/commit/6198e0494f96707171bf606689949d5360f7e4c5
- PACKAGE https://github.com/mganss/HtmlSanitizer
- WEB https://github.com/mganss/HtmlSanitizer/releases/tag/v9.1.973
Source records: GHSA-464h-4j8h-q5mf (OSV.dev) · EPSS by FIRST, 2026-11-26.