CVE-2026-115515

published 19 Nov 2026 · updated 23 Nov 2026

@fastify/static vulnerable to route guard bypass via default index and extension resolution

5.3MediumCVSS 5.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 10.1.8.

@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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
@fastify/static<10.1.810.1.8

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-115515 severity on Zeptric[![CVE-2026-115515](https://zeptric.io/badge/cve/CVE-2026-115515.svg)](https://zeptric.io/cve/CVE-2026-115515)