Open Redirect Affecting fastify-static package, versions <4.2.4


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (56th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-FASTIFYSTATIC-1728398
  • published6 Oct 2021
  • disclosed5 Oct 2021
  • creditdrstrnegth

Introduced: 5 Oct 2021

CVE-2021-22963  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

Upgrade fastify-static to version 4.2.4 or higher.

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.

CVSS Scores

version 3.1