# CVE-2021-22964

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability: affected before 4.4.1 (CNA); fix release not confirmed
- Status: published
- Published: 2021-10-14 · Modified: 2024-08-03
- Aliases: GHSA-pgh6-m65r-2rhq
- Record: https://cvemate.com/vulnerability/CVE-2021-22964 · JSON: https://cvemate.com/vulnerability/CVE-2021-22964/json

## Description

```text
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`.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H
- EPSS: 1.021%, percentile 64.567%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- fastify fastify-static: ≥ 4.2.4, \< 4.4.1
- Npm fastify-static (Npm): ≥ 4.2.4, \< 4.4.1

## References

- <https://hackerone.com/reports/1361804>
- <https://github.com/fastify/fastify-static/security/advisories/GHSA-pgh6-m65r-2rhq>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22964>
- <https://github.com/fastify/fastify-static/commit/c31f17d107cb19a0e96733c80a9abf16c56166d4>
- <https://github.com/fastify/fastify-static>

---

Data as of 2026-12-05T09:21:45.108Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
