CVE-2024-21501

State
Published
Severity
5.3 Medium
Published
Feb 24, 2024
Updated
Feb 13, 2025
Reserved
Dec 22, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:Psnyk

Weaknesses

  • CWE-200 Information Exposure
  • CWE-538 Insertion of Sensitive Information into Externally-Accessible File or Directory

Affected Products

ProductVersions
sanitize-htmln/a
  • before 2.12.1Affected
org.webjars.npm:sanitize-htmln/a
  • all versionsAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.