Open Redirect

Affecting fastify-static package, versions <4.2.4

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

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

CVSS Score

3.7
low severity
  • Attack Vector
    Network
  • Attack Complexity
    High
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    None
  • Integrity
    Low
  • Availability
    None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Credit
drstrnegth
CVE
CVE-2021-22963
CWE
CWE-601
Snyk ID
SNYK-JS-FASTIFYSTATIC-1728398
Disclosed
05 Oct, 2021
Published
06 Oct, 2021