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

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

October 12, 2021 (updated October 21, 2021)

A redirect vulnerability in the fastify-static module allows remote attackers to redirect Mozilla Firefox users to arbitrary websites via a double slash // followed by a domain: http://localhost:3000//a//youtube.com/%2e%2e%2f%2e%2e.A DoS vulnerability is possible if the URL contains invalid characters curl --path-as-is "http://localhost:3000//^/.."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-pgh6-m65r-2rhq
  • github.com/fastify/fastify-static/commit/c31f17d107cb19a0e96733c80a9abf16c56166d4
  • github.com/fastify/fastify-static/security/advisories/GHSA-pgh6-m65r-2rhq
  • hackerone.com/reports/1361804
  • nvd.nist.gov/vuln/detail/CVE-2021-22964

Code Behaviors & Features

Detect and mitigate CVE-2021-22964 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 starting from 4.2.4 before 4.4.1

Fixed versions

  • 4.4.1

Solution

Upgrade to version 4.4.1 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

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

Source file

npm/fastify-static/CVE-2021-22964.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:34 +0000.