~ / search / GHSA-rm97-x556-q36h

GHSA-rm97-x556-q36h

sanitize-html Information Exposure vulnerability

Source: GitHub Advisory Database (reviewed) Moderate CVE-2024-21501

Packages

EcosystemPackageAffectedFixed in
npm sanitize-html < 2.12.1 2.12.1

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.