Security advisory
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`.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-22964
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:38 UTC · Revision 1
Source evidence
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`.
osv:CVE-2021-22964
Complete source record
{
"id": "dd5972f0d4ab9fe3725aa28d74e5a82bc3daaf51f65a801ddec69f80f5768d69",
"url": "https://osv.dev/vulnerability/CVE-2021-22964",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-22964",
"summary": "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`.",
"evidence": "osv:CVE-2021-22964",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-22964",
"aliases": [
"CVE-2021-22964",
"GHSA-pgh6-m65r-2rhq"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/fastify/fastify-static",
"type": "GIT",
"events": [
{
"introduced": "d97b2cf6a0353e784ad2674aaecd6508ac74130d"
},
{
"fixed": "f324f8b5013a130885c4857aad50afa113f21eae"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:fastify:fastify-static:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "4.2.4"
},
{
"fixed": "4.4.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v4.4.0",
"v4.3.0",
"v4.2.4"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-22964.json"
}
}
],
"modified": "2026-10-24T10:30:55.949588904Z",
"provider": "osv",
"references": [
"https://hackerone.com/reports/1361804"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-22964",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 438553,
"published_at": "2021-10-14T15:15:08.933+00:00"
}