All reports
Medium

sanitize-html Information Exposure vulnerability

Affected versions

Affected versions
< 2.12.1
Fixed version
2.12.1
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-21501

Probability of exploitation in the next 30 days: 1.03%

FIRST EPSS · 2026-11-20

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.

Links

Credits

  • oscerd
  • krassowski