Media

HtmlSanitizer vulnerable to Cross-site Scripting in Foreign Content

  • Publicada: 04.10.2023
  • Actualizado: 11.10.2026 11:23

Impact

The vulnerability occurs in configurations where foreign content is allowed, i.e. either svg or math are in the list of allowed elements. Specifically, the requirements for the vulnerability are:

  1. Allowing one foreign element: svg, or math
  2. Comments or one raw text element: iframe, noembed, xmp, title, noframes, style or noscript

Configurations that meet the above requirements plus the following are vulnerable to an additional vulnerability:

  • Any HTML integration element: title, desc, mi, mo, mn, ms, mtext, annotation-xml.

In 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.

Patches

The vulnerability has been fixed in versions 8.0.723 and 8.1.722-beta (preview version).

Workarounds

Disallow foreign elements svg and math. This is the case in the default configuration, which is therefore not affected by the vulnerability.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
.NET (NuGet) HtmlSanitizer < 8.0.723, >= 8.1.0-beta, < 8.1.722-beta 8.0.723, 8.1.722-beta

Referencias

Puntuación CVSS 6.1/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Debilidad (CWE)
CWE-79
Plataforma
.NET (NuGet)
Paquete
HtmlSanitizer
Publicada
04.10.2023
Actualizado
11.10.2026 11:23

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-43cp-6p3q-2pc4 - CC BY 4.0

Historial de vulnerabilidades: HtmlSanitizer

Todas las vulnerabilidades publicadas de este paquete (.NET (NuGet)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Entradas en total
3
Primera → última
01.2021 02.2026
Sin corrección
0
Explotada en ataques
0

Distribución por gravedad

  • Media 2
  • Baja 1

Divulgaciones por año

  1. 2021: 1
  2. 2022: 0
  3. 2023: 1
  4. 2024: 0
  5. 2025: 0
  6. 2026: 1
  1. Media CVE-2026-25543 < 9.0.892, >= 9.1.878-beta, < 9.1.893-beta 9.0.892, 9.1.893-beta
  2. HtmlSanitizer vulnerable to Cross-site Scripting in Foreign Content esta entrada
    Media · 6.1 CVE-2023-44390 < 8.0.723, >= 8.1.0-beta, < 8.1.722-beta 8.0.723, 8.1.722-beta
  3. Baja · 6.1 CVE-2020-26293 < 5.0.372 5.0.372

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.