VDB
Sign up
MEDIUM5.4

GHSA-7j93-2h6r-hm49

Cross-Site Scripting in http-file-server

Details

All versions of `http-file-server` are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize filenames, allowing attackers to execute arbitrary JavaScript in the victim's browser through files with names containing malicious code.

## Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/http-file-server
Introduced in: 0

No fixed version published yet for http-file-server (npm). Pin to a known-safe version or switch to an alternative.

References