serve-handler@3.1.2 vulnerabilities

The routing foundation of `serve` and static deployments on Now

Direct Vulnerabilities

Known vulnerabilities in the serve-handler package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Information Exposure

serve-handler is a package responsible for routing requests and handling responses.

Affected versions of this package are vulnerable to Information Exposure. The unlisted property removes the file/folder from directory list but still allows viewing them by visiting their path.

How to fix Information Exposure?

Upgrade serve-handler to version 5.0.8 or higher.

<5.0.8
  • M
Cross-site Scripting (XSS)

serve-handler Static file serving and directory listing.

The module provides a directory listing feature in it's HTTP server which does not sanitise the filename potentially allowing a malicious payload in the filename could be used to invoke an XSS.

How to fix Cross-site Scripting (XSS)?

Upgrade serve-handler to version 5.0.3 or higher

<5.0.3