cve.bz

CVE-2024-21501

5.3 mediumEPSS 1.0%

Medium (5.3). EPSS 1.0% chance of exploitation in the next 30 days. Fixed in sanitize-html 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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
1.0% chance of exploitation in the next 30 days; higher than 63% of CVEs (scores of 2026-10-31)
CWEs
CWE-200, CWE-538
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rm97-x556-q36hnpmsanitize-html<2.12.12.12.1

References

Check your stackJSON