5.3medium
sanitize-html Information Exposure vulnerability
- Severity
- 5.3medium CVSS:3.1 by snyk
- Exploit likelihood
- 1.02% (higher than 64% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-rm97-x556-q36h
Description
Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend and with the style attribute allowed, allowing enumeration of files in the system (including project dependencies). An attacker could exploit this vulnerability to gather details about the file system structure and dependencies of the targeted server.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| sanitize-html | before 2.12.1 | CVE List |
| org.webjars.npm:sanitize-html | before * | CVE List |
| apostrophecms sanitize-html | before 2.12.1 | CVE List, NVD |
| sanitize-html (npm) | before 2.12.1 | GitHub Advisory Database |
| fedoraproject fedora | 39, 40 | NVD |
All scores
| snyk | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
What each source says
CVE List
Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend and with the style attribute allowed, allowing enumeration of files in the system (including project dependencies). An attacker could exploit this vulnerability to gather details about the file system structure and dependencies of the targeted server.
NVD (es)
Las versiones del paquete sanitize-html anteriores a la 2.12.1 son vulnerables a la exposición de la información cuando se usan en el backend y con el atributo de estilo permitido, lo que permite la enumeración de archivos en el sistema (incluidas las dependencias del proyecto). Un atacante podría aprovechar esta vulnerabilidad para recopilar detalles sobre la estructura del sistema de archivos y las dependencias del servidor objetivo.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21501 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rm97-x556-q36h changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-21501 changed 2026-06-17 | Public domain |