File Disclosure Vulnerability in @fastify/static Plugin from Fastify
CVE-2026-115515

5.3MEDIUM

Key Information:

Vendor
CVE Published:
19 November 2026

What is CVE-2026-115515?

The @fastify/static plugin, used for serving static files within Fastify applications, is susceptible to a file disclosure vulnerability in versions prior to 10.1.8. When a request is made for a directory, the plugin defaults to serving an index file, while extensionless requests are resolved to a matched file through configured extensions. Unfortunately, these selected files are streamed without adequate verification against the allowedPath guard, enabling unauthenticated clients to read files within the static root, which the application intended to keep private. This breach occurs if the targeted file is accessible as a directory index or extension match. Fastify recommends users upgrade to version 10.1.8 or later to mitigate this risk. Additionally, users are advised to implement a workaround by denying directory and extensionless requests or disabling the index and extensions options.

Affected Version(s)

@fastify/static 0 < 10.1.8

@fastify/static 10.1.8

References

CVSS V3.1

Score:
5.3
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

koyokr
mcollina
UlisesGascon
.