VDB
Sign up
MEDIUM5.3

GHSA-rm97-x556-q36h

sanitize-html Information Exposure vulnerability

Quick fix

GHSA-rm97-x556-q36h — sanitize-html: upgrade to the fixed version with the command below.

npm install sanitize-html@2.12.1

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/sanitize-html
Introduced in: 0Fixed in: 2.12.1
Fixnpm install sanitize-html@2.12.1

References