CVE-2024-21501

published 24 Feb 2024 · updated 13 Feb 2025

Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend and with the style…

5.3MediumCVSS 5.3EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in * and 2.12.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<2.12.1*, 2.12.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-21501 severity on Zeptric[![CVE-2024-21501](https://zeptric.io/badge/cve/CVE-2024-21501.svg)](https://zeptric.io/cve/CVE-2024-21501)