# CVE-2021-22963: URL Redirection to Untrusted Site ('Open Redirect') in fastify-static

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.17%, higher than 68% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-05T20:24:49.000Z
- Modified: 2026-06-17T03:38:07.070Z
- Also known as: GHSA-p6vg-p826-qp3v
- Weaknesses: CWE-601
- Assigned by: hackerone

## Description

A redirect vulnerability in the fastify-static module version < 4.2.4 allows remote attackers to redirect users to arbitrary websites via a double slash // followed by a domain: http://localhost:3000//google.com/%2e%2e.The issue shows up on all the fastify-static applications that set redirect: true option. By default, it is false.

(As written by CVE List.)

## Affected

- https://github.com/fastify/fastify-static: Affects < v4.2.4. Fixed in >= v4.2.4
- fastify-static (npm): before 4.2.4
- fastify fastify-static: before 4.2.4

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

- <https://hackerone.com/reports/1354255> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/fastify/fastify-static/security/advisories/GHSA-p6vg-p826-qp3v> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-22963> (advisory)
- <https://github.com/fastify/fastify-static> (package)

## Sources

- CVE List: [CVE-2021-22963](https://www.cve.org/CVERecord?id=CVE-2021-22963), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-p6vg-p826-qp3v](https://github.com/advisories/GHSA-p6vg-p826-qp3v), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-22963](https://nvd.nist.gov/vuln/detail/CVE-2021-22963), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-22963 · Whole record: https://cve.day/CVE-2021-22963.json · Rebuilt by cve.day 2026-11-25T22:58:04.493Z
