MEDIUM 5.3 npm

sanitize-html Information Exposure vulnerability

GHSA-rm97-x556-q36h · CVE-2024-21501

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes