Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. fastify-static
  4. ›
  5. CVE-2021-22963

CVE-2021-22963: URL Redirection to Untrusted Site ('Open Redirect')

October 5, 2021 (updated October 21, 2021)

A redirect vulnerability in the fastify-static module allows remote attackers to redirect 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 redirect: true option. By default, it is false.

References

  • github.com/advisories/GHSA-p6vg-p826-qp3v
  • github.com/fastify/fastify-static/security/advisories/GHSA-p6vg-p826-qp3v
  • hackerone.com/reports/1354255
  • nvd.nist.gov/vuln/detail/CVE-2021-22963

Code Behaviors & Features

Detect and mitigate CVE-2021-22963 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.2.4

Fixed versions

  • 4.2.4

Solution

Upgrade to version 4.2.4 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

npm/fastify-static/CVE-2021-22963.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:18 +0000.