Uncontrolled resource consumption in https://github.com/fastify/fastify-static
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Denial of service, Spoofing
- Confidentiality · integrity · availability
- Low · Low · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-400 and CWE-601.
Summary
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`.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | https://github.com/fastify/fastify-static | Affected >= v4.2.4, Fixed v4.4.1 | — | No fix listed | CNA |
| — | fastify-static (npm) | 4.2.4 to before 4.4.1 | 4.4.1 | Patch available | GHSA-pgh6-m65r-2rhq |
- https://github.com/fastify/fastify-static Vendor— Affected Affected >= v4.2.4, Fixed v4.4.1 Fixed in — No fix listed CNA
- fastify-static (npm) Vendor— Affected 4.2.4 to before 4.4.1 Fixed in 4.4.1 Patch available GHSA-pgh6-m65r-2rhq
Remediation
- Fix · GHSA-pgh6-m65r-2rhq fastify-static (npm) Fixed in 4.4.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 1 product
- Red Hat Advanced Cluster Management for Kubernetes 2
Timeline
- 2026-10-02 Threatist record created from CVE-2021-22964
- 2026-10-03 Alias added: GHSA-pgh6-m65r-2rhq
References
More Fastify-static vulnerabilities
- TI-2026-15143 @fastify/static vulnerable to route guard bypass via non-canonical path segments CVSS 3.1HIGH 7.5
- TI-2026-12689 @fastify/static vulnerable to route guard bypass via path traversal CVSS 3.1HIGH 7.5
- TI-2026-05626 @fastify/static vulnerable to path traversal in directory listing CVSS 3.1MEDIUM 5.3
- TI-2026-06243 @fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths CVSS 3.1MEDIUM 5.3
- TI-2021-05824 Open redirect in https://github.com/fastify/fastify-static CVSS 3.1MEDIUM 6.1
- TI-2026-05629 @fastify/static vulnerable to route guard bypass via encoded path separators CVSS 3.1MEDIUM 5.9
Sources
- CVE-2021-22964 · CVE Program
- CVE-2021-22964 · NVD
- FIRST EPSS
- GHSA-pgh6-m65r-2rhq · GitHub Advisory Database · CC BY 4.0
- CVE-2021-22964 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences