CVE-2026-115515
Published:November 19, 2026
Updated:November 21, 2026
@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 Packages
https://github.com/fastify/fastify-static.git (GITHUB):
Affected version(s) >=v5.0.0 <v10.1.8 || >=v6.0.0 <v10.1.8 || >=v7.0.0 <v10.1.8 || >=v8.0.0 <v10.1.8 || >=v9.0.0 <v10.1.8 || >=v10.0.0 <v10.1.8Fix Suggestion:
Update to version v10.1.8@fastify/static (NPM):
Affected version(s) >=6.0.0 <10.1.8 || >=10.0.0 <10.1.8 || >=7.0.0 <10.1.8 || >=5.0.0 <10.1.8 || >=8.0.0 <10.1.8 || >=9.0.0 <10.1.8Fix Suggestion:
Update to version 10.1.8Related ResourcesĀ (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Incorrect Authorization
EPSS
Base Score:
0.28