CVE-2021-22964
publishedfastify-static: open redirect and DoS via an URL with double slash followed by a domain and with invalid characters
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | https://github.com/fastify/fastify-staticAffected >= v4.2.4, Fixed v4.4.1 | Affected | Not stated | 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`.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | https://github.com/fastify/fastify-static | Affected >= v4.2.4, Fixed v4.4.1 (affected) | hackerone · cna |
Weaknesses
1- CWE-400 Denial of Service (CWE-400)
References
1Provider assertions
2hackerone · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 7be4405a3ac1c7f9ad9f05ed0eb8410e77099e5d99de6437944c12a8f73b26f8
- Ingested
- 23 Sep 2026, 07:52:52 UTC
- Source record
- Official CVE record