{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-22964","id":"CVE-2021-22964","title":"DOS and Open Redirect with user input","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 sho","descriptionLong":"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`.","published":"2021-10-14T14:50:07.000Z","updated":"2026-10-24T10:30:55.949588904Z","reserved":"2021-01-06T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"hackerone","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":["https://github.com/fastify/fastify-static"],"affectedProducts":[{"vendor":"n/a","product":"https://github.com/fastify/fastify-static","defaultStatus":null,"versions":[{"status":"affected","version":"Affected >= v4.2.4, Fixed v4.4.1"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"fastify-static","purl":"pkg:npm/fastify-static","ranges":[">=4.2.4 <4.4.1"],"fixed":["4.4.1"],"advisory":"GHSA-pgh6-m65r-2rhq"}],"cwes":["CWE-400","CWE-601","CWE-248"],"aliases":["GHSA-pgh6-m65r-2rhq"],"references":[{"url":"https://hackerone.com/reports/1361804","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-pgh6-m65r-2rhq","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22964","tags":["advisory"]},{"url":"https://github.com/fastify/fastify-static/commit/c31f17d107cb19a0e96733c80a9abf16c56166d4","tags":["web"]},{"url":"https://github.com/fastify/fastify-static","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01021,"epssPercentile":0.64142,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-22964","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22964","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-22964","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-pgh6-m65r-2rhq","ok":true,"note":"GHSA-pgh6-m65r-2rhq"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-22964","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}