# CVE-2021-22964: DOS and Open Redirect with user input

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.02%, higher than 63% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-12T16:04:17.000Z
- Modified: 2026-06-17T03:38:07.180Z
- Also known as: GHSA-pgh6-m65r-2rhq
- Weaknesses: CWE-248, CWE-400, CWE-601
- Assigned by: hackerone

## Description

A redirect vulnerability in the `fastify-static` module version >= 4.2.4 and < 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`.

(As written by CVE List.)

## Affected

- https://github.com/fastify/fastify-static: Affected >= v4.2.4, Fixed v4.4.1
- fastify-static (npm): from 4.2.4 before 4.4.1
- fastify fastify-static: from 4.2.4 before 4.4.1

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://hackerone.com/reports/1361804> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/fastify/fastify-static/security/advisories/GHSA-pgh6-m65r-2rhq> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22964> (advisory)
- <https://github.com/fastify/fastify-static/commit/c31f17d107cb19a0e96733c80a9abf16c56166d4> (web)
- <https://github.com/fastify/fastify-static> (package)

## Sources

- CVE List: [CVE-2021-22964](https://www.cve.org/CVERecord?id=CVE-2021-22964), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-pgh6-m65r-2rhq](https://github.com/advisories/GHSA-pgh6-m65r-2rhq), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-22964](https://nvd.nist.gov/vuln/detail/CVE-2021-22964), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-22964 · Whole record: https://cve.day/CVE-2021-22964.json · Rebuilt by cve.day 2026-11-25T22:58:04.493Z
