CVE-2026-115515
published medium CVSS 3.1 · 5.3@fastify/static vulnerable to route guard bypass via default index and extension resolution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| @fastify/static | — | @fastify/static0 to < 10.1.8 (affected · semver) · 10.1.8 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
Description
@fastify/static is the Fastify plugin for serving static files. In versions before 10.1.8, the allowedPath guard receives only the requested pathname, but the underlying send step selects the file to serve afterwards, so a request for a directory resolves to its default index file and an extensionless request resolves through the configured extensions to a matching file. The selected file is streamed without being re-checked against allowedPath, so a guard that denies a specific file is bypassed by requesting its directory or extensionless form. An unauthenticated client can read files inside the static root that the application meant to keep private whenever the denied file is reachable as a directory index or an extension match. The issue is fixed in @fastify/static 10.1.8, and users should upgrade to 10.1.8 or later. As a workaround, also deny the directory and extensionless forms in allowedPath, or disable the index and extensions options.
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.8 (affected · semver)10.1.8 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
1- CWE-863 CWE-863: Incorrect Authorization
References
2Provider assertions
2openjs · cna
@fastify/static vulnerable to route guard bypass via default index and extension resolution
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5e80a3d4437ab8fab98a3da0fcf650d28a08fa73dd5a58bca3c688fdb37406e1
- Ingested
- 19 Nov 2026, 20:57:08 UTC
- Source record
- Official CVE record