All CVEs / Htmlsanitizer Project
CVE-2023-44390Htmlsanitizer Project Htmlsanitizer
Medium 6.1 No auth needed
Follow: this CVE · Htmlsanitizer Project · Htmlsanitizer Project Htmlsanitizer We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 37
- Auth required
- No
- Published
- Oct 5, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS attacks. The vulnerability occurs in configurations where foreign content is allowed, i.e. either `svg` or `math` are in the list of allowed elements. In the case an application sanitizes user input with a vulnerable configuration, an attacker could bypass the sanitization and inject arbitrary HTML, including JavaScript code. Note that in the default configuration the vulnerability is not present. The vulnerability has been fixed in versions 8.0.723 and 8.1.722-beta (preview version).
What to do
- Apply the vendor's security update for Htmlsanitizer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| NuGet | HtmlSanitizer |
< 8.0.723 |
8.0.723 |
dotnet add package HtmlSanitizer --version 8.0.723 |
| NuGet | HtmlSanitizer |
≥ 8.1.0-beta < 8.1.722-beta |
8.1.722-beta |
dotnet add package HtmlSanitizer --version 8.1.722-beta |
Per OSV / GitHub Advisories (GHSA-43cp-6p3q-2pc4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| htmlsanitizer_project | htmlsanitizer | < 8.0.723 |
| htmlsanitizer_project | htmlsanitizer | 8.1.719 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Vendor Advisory