Exposure of Dot-Directory Names in Fastify Static Plugin
CVE-2026-130811
What is CVE-2026-130811?
The @fastify/static plugin, responsible for serving static files in Fastify applications, was susceptible to a directory listing exposure when configured to deny dotfiles while allowing directory listing. In versions up to 10.1.11, an unauthenticated attacker could access directory listings of denied dot-directories, revealing file and subdirectory names. This occurs due to a flaw in the response handling where a request for a denied directory incorrectly serves its contents instead of denying access. The issue was rectified in version 10.1.12, and it is advisable for users to upgrade to this version or later. As an immediate mitigation, users could disable directory listings or avoid serving directories that contain dot-files.
Affected Version(s)
@fastify/static 0 < 10.1.12
@fastify/static 10.1.12
