fastify-static@3.4.0

Vulnerabilities

1 via 1 paths

Dependencies

34

Source

npm

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
Status
  • 1
  • 0
  • 0

low severity

Open Redirect

  • Vulnerable module: fastify-static
  • Introduced through: fastify-static@3.4.0

Detailed paths

  • Introduced through: fastify-static@3.4.0
    Remediation: Upgrade to fastify-static@4.2.4.

Overview

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.

Remediation

Upgrade fastify-static to version 4.2.4 or higher.

References