Improper Handling of Case Sensitivity Affecting @fastify/static package, versions <10.1.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.36% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-FASTIFYSTATIC-19883910
  • published17 Sept 2026
  • disclosed17 Sept 2026
  • credit0xRenSec

Introduced: 17 Sep 2026

NewCVE-2026-90982  (opens in a new tab)
CWE-178  (opens in a new tab)

How to fix?

Upgrade @fastify/static to version 10.1.4 or higher.

Overview

@fastify/static is a Plugin for serving static files as fast as possible.

Affected versions of this package are vulnerable to Improper Handling of Case Sensitivity via the route matching process. An attacker can access protected files by altering the letter case of a path segment in a request on case-insensitive filesystems, thereby bypassing route guard or allowedPath restrictions.

Note: This is only exploitable if the server is running on a case-insensitive filesystem such as Windows or the default macOS volume.

Workaround

This vulnerability can be mitigated by serving static files from a case-sensitive filesystem, or by ensuring route guards and allowedPath rules account for every letter-case variant of the protected paths.

CVSS Base Scores

version 4.0
version 3.1