CVE-2026-6414
@fastify/static versions 8.0.0 through 9.1.0 decode percent-encoded …
@fastify/static versions 8.0.0 through 9.1.0 decode percent-encoded path separators (%2F) before filesystem resolution, while Fastify's router treats them as literal characters. This mismatch allows attackers to bypass route-based middleware or guards that protect files served by @fastify/static. For example, a route guard on a protected path can be circumvented by encoding the path separator in the URL. Upgrade to @fastify/static 9.1.1 to fix this issue. There are no workarounds.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- cna.openjsf.org/security-advisories.html
- github.com/fastify/fastify-static/security/advisories/GHSA-x428-ghpx-8j92
- github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69p
- github.com/honojs/hono/security/advisories/GHSA-q5qw-h33p-qvwr
- nvd.nist.gov/vuln/detail/CVE-2026-6414
- github.com/advisories/GHSA-x428-ghpx-8j92
- nvd.nist.gov/vuln/detail/CVE-2026-6414
- cve.org/CVERecord?id=CVE-2026-6414
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.