{"id":"CVE-2021-22963","aliases":["GHSA-p6vg-p826-qp3v"],"url":"https://o3.security/vulnerability/CVE-2021-22963","summary":"URL Redirection to Untrusted Site ('Open Redirect') in fastify-static","details":"### Impact\n\nA redirect vulnerability in the `fastify-static` module allows remote attackers to redirect Mozilla Firefox users to arbitrary websites via a double slash `//` followed by a domain: `http://localhost:3000//google.com/%2e%2e`.\n\nThe issue shows up on all the `fastify-static` applications that set `redirect: true` option. By default, it is `false`.\n\n### Patches\nThe issue has been patched in `fastify-static@4.2.4`\n\n### Workarounds\nIf updating is not an option, you can sanitize the input URLs using the [`rewriteUrl`](https://www.fastify.io/docs/latest/Server/#rewriteurl) server option.\n\n### References\n\n+ Bug founder: drstrnegth\n+ [hackerone Report](https://hackerone.com/reports/1354255)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [fastify-static](https://github.com/fastify/fastify-static)\n* Contact the [security team](https://github.com/fastify/fastify/blob/main/SECURITY.md#the-fastify-security-team)\n","published":"2021-10-14T15:15:08.877Z","modified":"2026-10-24T10:30:35.176880683Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":{"score":0.01169,"percentile":0.68177,"asOf":"2026-11-21"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"fastify-static","fixedVersion":"4.2.4"}],"fix":null,"references":[{"type":"REPORT","url":"https://hackerone.com/reports/1354255"},{"type":"WEB","url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-p6vg-p826-qp3v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22963"},{"type":"PACKAGE","url":"https://github.com/fastify/fastify-static"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-24T10:30:35.176880683Z"}}