{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "4.2.4"
              },
              {
                "fixed": "4.4.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "d97b2cf6a0353e784ad2674aaecd6508ac74130d"
            },
            {
              "fixed": "f324f8b5013a130885c4857aad50afa113f21eae"
            }
          ],
          "repo": "https://github.com/fastify/fastify-static",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "A redirect vulnerability in the `fastify-static` module version \u003e= 4.2.4 and \u003c 4.4.1 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`.",
  "id": "CVE-2021-22964",
  "modified": "2026-03-13T21:57:19.513447060Z",
  "published": "2021-10-14T15:15:08.933Z",
  "references": [
    {
      "type": "FIX",
      "url": "https://hackerone.com/reports/1361804"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H",
      "type": "CVSS_V3"
    }
  ]
}