Open Redirect in Fastify Fastify-Static
CVE-2021-22964
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`.
Vulnerability class: DoS (Denial of Service)
EPSS: 0.010 (61.1th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:H.
Affected products
- Fastify Fastify-static
- N/a Https://github.com/fastify/fastify-static — versions Affected >= v4.2.4, Fixed v4.4.1
Weakness classification (CWE)
References
- support@hackerone.com (Exploit, Patch, Third Party Advisory, x_refsource_MISC, Issue Tracking)
Frequently asked questions
- What is CVE-2021-22964?
- CVE-2021-22964 is a high-severity vulnerability in Fastify Fastify-Static, classified under Uncontrolled Resource Consumption. CVSS score: 8.8/10. Published 2021-10-14.
- How severe is CVE-2021-22964?
- High severity. CVSS v3 base score is 8.8 out of 10.