CVE-2021-22964

fastify-static: open redirect and DoS via an URL with double slash followed by a domain and with invalid characters

Published Oct 14, 2021 CVSS 3.1 · 8.8 High EPSS 1.0% KEV · Not listed
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`.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-2236 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`.
Github GHSA Github GHSA GHSA-pgh6-m65r-2rhq DOS and Open Redirect with user input
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
hackerone
Published
Updated
Aug 3, 2024, 6:58 PM
Reserved
Jan 6, 2021, 12:00 AM
Status
Modified
Published
Oct 14, 2021, 3:15 PM
Modified
Jun 17, 2026, 3:38 AM
Severity
Moderate
Public date
Oct 6, 2021, 12:00 AM