fastify-static@2.2.0 vulnerabilities

`fastify-static@4.7.0` has been deprecated. Please use `@fastify/static@5.0.0` instead.

Direct Vulnerabilities

Known vulnerabilities in the fastify-static 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
  • L
Open Redirect

fastify-static is a plugin for serving static files as fast as possible.

Affected versions of this package are vulnerable to Open Redirect. It allows remote attackers to redirect Mozilla Firefox users to arbitrary websites via a double slash // followed by a domain - http://localhost:3000//google.com/%2e%2e.

The issue shows up on all the fastify-static applications that set the redirect: true option, which is false by default.

How to fix Open Redirect?

Upgrade fastify-static to version 4.2.4 or higher.

<4.2.4