CVE-2026-130811: @fastify/static vulnerable to information disclosure of denied dotfiles via directory listing

Published Nov 19, 2026
·
Updated

@fastify/static is the Fastify plugin for serving static files. In versions up to and including 10.1.11, when it is configured to deny or ignore dotfiles together with directory listing enabled, a request for a denied dot-directory returns its directory listing instead of being refused. The underlying send step answers with a forbidden response, but the listing fallback misreads that response on a path ending in a slash as a directory without an index file and serves the listing anyway. An unauthenticated client can enumerate the names of files and subdirectories, recursively, inside dot-directories the operator explicitly denied, such as version control, backup, and key file names. File contents remain protected and only names are disclosed. The issue is fixed in @fastify/static 10.1.12, and users should upgrade to 10.1.12 or later. As a workaround, disable directory listing or do not serve a root that contains dot-directories.

Affected Software

1 affected component
npm/@fastify/static<=10.1.11

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.1.12
  2. Configuration

    Disable directory listing as a workaround.

    @fastify/static directory listing = disabled
  3. Compensating control

    Do not serve a root that contains dot-directories.

Event History

Nov 19, 2026
CVE Published
via MITRE·05:55 PM
Data Sourced
via MITRE·05:55 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected?

Deployments using @fastify/static version 10.1.11 or earlier are affected only when both dotfiles are configured to be denied or ignored and directory listing is enabled. The served root must also contain dot-directories for information to be exposed.

2

What does an attacker need to exploit this issue?

An unauthenticated remote client can exploit it by requesting a denied dot-directory with a trailing slash. No privileges or user interaction are required.

3

What information can be disclosed?

An attacker can recursively enumerate names of files and subdirectories within denied dot-directories, including names associated with version control, backups, or keys. The vulnerability does not disclose file contents.

4

What can be done if upgrading is not immediately possible?

Disable directory listing, or avoid serving a root that contains dot-directories. Upgrading to @fastify/static 10.1.12 or later fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203