Path Traversal Vulnerability in @fastify/static by Fastify
CVE-2026-6414
5.9MEDIUM
What is CVE-2026-6414?
The @fastify/static package in versions 8.0.0 through 9.1.0 contains a vulnerability that allows an attacker to circumvent route-based middleware protections by exploiting the decoding of percent-encoded path separators (%2F) before filesystem resolution. This inconsistency between how paths are handled can lead to unauthorized access to protected files. Users are strongly recommended to upgrade to @fastify/static version 9.1.1 or higher, as there are no workarounds available to mitigate this risk.
Affected Version(s)
@fastify/static 8.0.0 < 9.1.1
@fastify/static 9.1.1
