# GHSA-7533-P376-8GG5: @fastify/static vulnerable to information disclosure of denied dotfiles via directory listing

- Database: GitHub
- Severity: CVSS 5.3 (Medium)
- Published: 2026-11-19
- Modified: 2026-11-19

## Tracked as

- [CVE-2026-130811](https://cve.now/CVE-2026-130811.md): @fastify/static information disclosure in dotfile directory listings

## Affected versions

- @fastify/static (npm): fixed in 10.1.12

## Description

### Impact

When `@fastify/static` is configured with `dotfiles: 'deny'` (or `'ignore'`) together with directory listing (`list`) enabled, a request for a denied dot-directory such as `/.git/` returns its directory listing instead of being refused. `@fastify/send` answers the request with a 403, but the listing fallback misreads that 403 on a path ending in `/` as a directory without an index file and serves the listing. An unauthenticated client can enumerate the names of files and subdirectories, recursively, inside dot-directories the operator explicitly denied (for example `.git` structure, backup and key file names). File contents remain protected (403); only names are disclosed. This contradicts the documented behavior that dotfiles are excluded from listings when `dotfiles` is `deny` or `ignore`.

### Patches

Fixed in `@fastify/static` 10.1.12. The directory-listing fallback no longer serves a path that `dotfiles: 'deny'` or `'ignore'` denies.

### Workarounds

Disable directory listing (`list`), or do not serve a root that contains dot-directories. Requests for individual dotfiles were already refused with 403 and are unaffected.

## References

- https://github.com/fastify/fastify-static/security/advisories/GHSA-7533-p376-8gg5

Page: https://cve.now/GHSA-7533-P376-8GG5
