Exposure of Information Through Directory Listing Affecting @fastify/static package, versions <10.1.12


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.28% (21st 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 IDSNYK-JS-FASTIFYSTATIC-22733211
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditRootSys Research

Introduced: 19 Nov 2026

NewCVE-2026-130811  (opens in a new tab)
CWE-548  (opens in a new tab)

How to fix?

Upgrade @fastify/static to version 10.1.12 or higher.

Overview

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

Affected versions of this package are vulnerable to Exposure of Information Through Directory Listing via the sendDirectoryList() function when the plugin is configured with dotfiles: 'deny' or 'ignore' alongside directory listing enabled. A request for a denied dot-directory (e.g. /.git/) triggers a 403 from the underlying @fastify/send step, but the listing fallback misreads that 403 on a path ending in / as a directory without an index file and serves the directory listing anyway. An unauthenticated client can recursively enumerate file and subdirectory names inside dot-directories the operator explicitly denied, such as version control metadata, backup files, and key file names. File contents remain protected and only names are disclosed.

Note: This is only exploitable when dotfiles is set to 'deny' or 'ignore' and directory listing (list) is explicitly enabled.

Workaround

Disable directory listing (list), or do not serve a root that contains dot-directories.

CVSS Base Scores

version 4.0
version 3.1