{"schemaVersion":3,"id":"CVE-2021-22964","aliases":["GHSA-pgh6-m65r-2rhq"],"status":"published","duplicateOf":null,"title":null,"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`.","dates":{"published":"2021-10-14T14:50:07.000Z","modified":"2024-08-03T18:58:26.128Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H","exploitability":7.2,"impact":8.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01021,"percentile":0.62882,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01021},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01021,"percentile":0.62882}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01021,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01021,"percentile":0.62882}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_D6A77E3810485B7A","name":"Exploit Reference (hackerone.com)","source":"reference","url":"https://hackerone.com/reports/1361804","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"},{"id":"CWE-601","name":"URL Redirection to Untrusted Site ('Open Redirect')","description":"The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Low","url":"https://cwe.mitre.org/data/definitions/601.html"}],"affected":[{"vendor":"fastify","product":"fastify-static","name":"fastify-static","label":"fastify-static","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.2.4, < 4.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.2.4, < 4.4.1","eol":null,"hubHref":"/vendor/fastify/fastify-static"},{"vendor":"Npm","product":"fastify-static","name":"fastify-static","label":"fastify-static","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/fastify-static","purlType":"npm","versions":[{"text":"≥ 4.2.4, < 4.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.2.4, < 4.4.1","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://hackerone.com/reports/1361804","label":"hackerone.com/reports/1361804","hostname":"hackerone.com","tags":["X Refsource MISC","WEB","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-pgh6-m65r-2rhq","label":"github.com/fastify/fastify-static/security/advisories/GHSA-pgh6-m65r-2rhq","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22964","label":"nvd.nist.gov/vuln/detail/CVE-2021-22964","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/fastify/fastify-static/commit/c31f17d107cb19a0e96733c80a9abf16c56166d4","label":"github.com/fastify/fastify-static/commit/c31f17d107cb19a0e96733c80a9abf16c56166d4","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/fastify/fastify-static","label":"github.com/fastify/fastify-static","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-10-14T14:50:07.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T18:58:26.128Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":45,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T01:08:21.553Z","stale":false,"partial":false}}