CVE-2026-90982

@fastify/static vulnerable to route guard bypass via path case-folding

Published Sep 17, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
@fastify/static is a Fastify plugin that serves static files from a configured root directory. In versions before 10.1.4, on a case-insensitive filesystem such as Windows or the default macOS volume, a route guard or allowedPath restriction can be bypassed by altering the letter case of a path segment. The route matcher is case-sensitive while the filesystem is not, so a request that changes the case of a protected segment does not match the guarded route and falls through to the static handler, yet the filesystem resolves it to the same protected file. As a result, an unauthenticated request can read a file that a route guard or allowedPath was configured to protect. The issue does not affect case-sensitive filesystems and is not a directory traversal, since nothing is served from outside the configured root. The issue is fixed in @fastify/static 10.1.4, which validates the requested path against its actual on-disk spelling and rejects case-aliased paths before authorization. As a workaround, serve static files from a case-sensitive filesystem, or ensure route guards and allowedPath rules account for every letter-case variant of the protected paths.

Analysis

AI-generated

Technical impact

The vulnerability resides in the @fastify/static plugin, which serves files from a configured root. In version strings older than 10.1.4, the route matcher is case-sensitive while the underlying filesystem on Windows or the default macOS volume is not. This mismatch allows an attacker to modify the letter case of a path segment that is protected by a route guard or an allowedPath rule. The altered path does not match the guard, and the request is forwarded to the static handler, which then resolves the path on disk and serves the protected file. The consequence is that an unauthenticated user can read a file that was intended to be shielded by application‑level authorization. This is a classic example of CWE‑178 (Improper Case Conversion) combined with CWE‑284 (Improper Authorization).

Affected Systems

Any deployment that uses @fastify/static prior to version 10.1.4 and runs on a case‑insensitive filesystem such as Windows or a default macOS volume is affected. The vulnerability applies whenever static files are served from a root directory that contains files or directories whose names have case variations that are guarded by route rules.

Risk and Exploitability

The CVSS v3.1 score of 5.3 classifies the issue as moderate severity. The EPSS score of less than 1% suggests that exploitation is unlikely in the current threat landscape, and the vulnerability is not listed in CISA’s Known Exploited Vulnerabilities catalog. Nonetheless, the attack vector is local to the web application: an unauthenticated HTTP request that alters case in a protected path can bypass authentication checks and read sensitive files. The attacker requires no elevated privileges beyond the ability to send requests to the target; the exploitation is completely remote through the HTTP interface.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade @fastify/static to version 10.1.4 or newer, which validates the requested path against actual on‑disk spelling and rejects case‑aliased paths before authorization.
  • If upgrading is not immediately possible, configure the static files to reside on a case‑sensitive filesystem, such as a dedicated Linux partition or a case‑sensitive volume on macOS.
  • Modify existing route guards or allowedPath rules to explicitly account for every letter‑case variant of protected paths, ensuring no case‑folded path can bypass authorization.

Generated by OpenCVE AI on September 18, 2026 at 04:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Fastify
Fastify fastify-static
Vendors & Products Fastify
Fastify fastify-static
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description @fastify/static is a Fastify plugin that serves static files from a configured root directory. In versions before 10.1.4, on a case-insensitive filesystem such as Windows or the default macOS volume, a route guard or allowedPath restriction can be bypassed by altering the letter case of a path segment. The route matcher is case-sensitive while the filesystem is not, so a request that changes the case of a protected segment does not match the guarded route and falls through to the static handler, yet the filesystem resolves it to the same protected file. As a result, an unauthenticated request can read a file that a route guard or allowedPath was configured to protect. The issue does not affect case-sensitive filesystems and is not a directory traversal, since nothing is served from outside the configured root. The issue is fixed in @fastify/static 10.1.4, which validates the requested path against its actual on-disk spelling and rejects case-aliased paths before authorization. As a workaround, serve static files from a case-sensitive filesystem, or ensure route guards and allowedPath rules account for every letter-case variant of the protected paths.
Title @fastify/static vulnerable to route guard bypass via path case-folding
Weaknesses CWE-178
CWE-284
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses
  • CWE-178

    Improper Handling of Case Sensitivity

  • CWE-284

    Improper Access Control

Sources

Status
PUBLISHED
Assigner
openjs
Published
Updated
Sep 17, 2026, 12:33 PM
Reserved
Sep 14, 2026, 1:46 PM
Status
Awaiting Analysis
Published
Sep 17, 2026, 7:16 AM
Modified
Sep 18, 2026, 7:07 PM
Severity
Moderate
Public date
Sep 17, 2026, 6:55 AM