CVE-2024-21501 - CVE House
Back to Database
Status published Medium CVE-2024-21501

Versions of the package sanitize-html before 2.12.1 are vulnerable to...

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

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-21501

Credits & Attribution

The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:

  • Vsevolod Kokorin (Slonser) of Solidlab

Affected Vendor

Affected Software

sanitize-html, org.webjars.npm:sanitize-html
Vulnerable Versions:
0

Timeline

Official Publish: February 24th, 2024
Last Modified: February 13th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

V3: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P

Weaknesses (CWE)