{"id":"CVE-2021-22964","published":"2021-10-14T14:50:07Z","modified":"2024-08-03T18:58:26Z","title":"A redirect vulnerability in the `fastify-static` module version >= 4.2.4 and < 4.4.1 allows remote attackers to…","vendor":null,"product":null,"tier":"tail","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`.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01021,"percentile":0.64291,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://hackerone.com/reports/1361804","tags":["x_refsource_MISC"]}],"priority":{"score":12.9,"factors":[{"name":"EPSS percentile","points":12.86}]},"affectedVersions":[{"vendor":"n/a","product":"https://github.com/fastify/fastify-static","versions":["Affected >= v4.2.4, Fixed v4.4.1"]}],"affected":[{"ecosystem":"npm","package":"fastify-static","vulnerableRanges":[">=4.2.4, <4.4.1"],"patched":["4.4.1"],"from":["GHSA-pgh6-m65r-2rhq"],"provenance":"source"}],"summary":{"text":"The flaw is in the fastify-static module (versions 4.2.4 up to but not including 4.4.1), which mishandles URLs with a double slash so that applications using it can redirect users to arbitrary sites. An attacker can exploit it remotely by sending a crafted request to an application that has the redirect: true option enabled (it is false by default), and a malformed URL with invalid characters can additionally cause a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:10Z"},"euvd":{"id":"EUVD-2021-2236","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-honojs-hono-cve-2021-22964","children":[{"from":"CVE-2021-22964","to":"CVE-2026-15074","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/fastify/fastify-static/commit/c31f17d107cb19a0e96733c80a9abf16c56166d4","https://github.com/fastify/fastify-static/commit/db4276f846ba56b21f93768cd6636ee5e2fc58b1"],"basis":"shared function","functions":["fastifyStatic"]}]},{"from":"CVE-2021-22964","to":"CVE-2026-7120","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/fastify/fastify-static/commit/c31f17d107cb19a0e96733c80a9abf16c56166d4","https://github.com/fastify/fastify-static/commit/878c72e920fabacf7e37739bf78057044717bf63"],"basis":"shared function","functions":["fastifyStatic"]}]}],"packageHistory":[{"cve":"CVE-2021-22963","published":"2021-10-14","fixed":"4.2.4","kev":false,"link":{"from":"CVE-2021-22963","to":"CVE-2021-22964","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fastify-static","fromFixed":"4.2.4","toFixed":"4.4.1","daysApart":0},{"kind":"similar","provenance":"machine","score":0.86,"basis":"same package + description similarity"}]}},{"cve":"CVE-2021-22964","published":"2021-10-14","fixed":"4.4.1","kev":false}],"package":"npm:fastify-static"}}