CVE-2026-90982
published medium CVSS 3.1 · 5.3@fastify/static vulnerable to route guard bypass via path case-folding
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| @fastify/static | — | @fastify/static0 to < 10.1.4 (affected · semver) · 10.1.4 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| @fastify/static | @fastify/static | 0 to < 10.1.4 (affected · semver)10.1.4 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
2- CWE-178 CWE-178: Improper Handling of Case Sensitivity
- CWE-284 CWE-284: Improper Access Control
References
2Provider assertions
2openjs · cna
@fastify/static vulnerable to route guard bypass via path case-folding
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 213fc8230bc7bd16d92755cd0e78137eb8b986787cfd9c1788f5a596cec13594
- Ingested
- 23 Sep 2026, 09:39:57 UTC
- Source record
- Official CVE record