CVE-2023-44390
HtmlSanitizer vulnerable to Cross-site Scripting in Foreign Content
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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).
HtmlSanitizer es una librería .NET para limpiar fragmentos y documentos HTML de construcciones que pueden provocar ataques XSS. La vulnerabilidad ocurre en configuraciones donde se permite contenido externo, es decir, "svg" o "math" están en la lista de elementos permitidos. En el caso de que una aplicación sanitice la entrada del usuario con una configuración vulnerable, un atacante podría eludir la sanitización e inyectar HTML arbitrario, incluido código JavaScript. Tenga en cuenta que en la configuración predeterminada la vulnerabilidad no está presente. La vulnerabilidad se ha solucionado en las versiones 8.0.723 y 8.1.722-beta (versión preliminar).
CVSS Scores
SSVC
- Decision:Track
Timeline
- 2023-09-28 CVE Reserved
- 2023-10-05 CVE Published
- 2024-09-19 CVE Updated
- 2025-04-15 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CAPEC
References (2)
URL | Tag | Source |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://github.com/mganss/HtmlSanitizer/commit/ab29319866c020f0cc11e6b92228cd8039196c6e | 2023-10-12 |
URL | Date | SRC |
---|---|---|
https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-43cp-6p3q-2pc4 | 2023-10-12 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Htmlsanitizer Project Search vendor "Htmlsanitizer Project" | Htmlsanitizer Search vendor "Htmlsanitizer Project" for product "Htmlsanitizer" | < 8.0.723 Search vendor "Htmlsanitizer Project" for product "Htmlsanitizer" and version " < 8.0.723" | - |
Affected
| ||||||
Htmlsanitizer Project Search vendor "Htmlsanitizer Project" | Htmlsanitizer Search vendor "Htmlsanitizer Project" for product "Htmlsanitizer" | 8.1.719 Search vendor "Htmlsanitizer Project" for product "Htmlsanitizer" and version "8.1.719" | beta |
Affected
|