GitHub Advisoryadvisory · npm

GHSA-rm97-x556-q36h sanitize-html Information Exposure vulnerability

MEDIUM Published 2024-02-24 Modified 2024-08-28 Official page ↗
Aliases
CVE-2024-21501
Ecosystem
npm
Packages
sanitize-html
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Weaknesses
CWE-200, CWE-538
Reviewed
2024-03-01

Affected packages

• npm sanitize-html: < 2.12.1 → fixed in 2.12.1

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.

Related

Alias · CVE (1)

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

Weakness · CWE (2)

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
  • CWE-538 Insertion of Sensitive Information into Externally-Accessible File or Directory weakness

References