Incorrect Authorization Affecting @fastify/static package, versions <10.1.8


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.28% (22nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-FASTIFYSTATIC-22733212
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditYounghun Ko

Introduced: 19 Nov 2026

NewCVE-2026-115515  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade @fastify/static to version 10.1.8 or higher.

Overview

@fastify/static is a Plugin for serving static files as fast as possible.

Affected versions of this package are vulnerable to Incorrect Authorization via the allowedPath guard, which receives only the requested pathname but does not re-check the final resolved file path after @fastify/send performs directory index and extension resolution. A request for a directory such as /private/ resolves to its default index.html, and an extensionless request such as /secret resolves through the configured extensions to secret.html. Because the selected file is streamed without being re-checked against allowedPath, a guard that denies /private/index.html or /secret.html is bypassed by requesting the directory or extensionless form, allowing an unauthenticated client to read files the application intended to keep private.

CVSS Base Scores

version 4.0
version 3.1