Intel

AIKIDO-2026-304658

@fastify/static is vulnerable to Path Traversal

Path TraversalCVE-2026-15074 Published 4 days ago

75

High Risk

This Affects:

JS@fastify/static
5.0.0 - 10.1.0
Fixed in 10.1.1
Are you affected? Scan for Free

TL;DR

@fastify/static relies on the find-my-way router to match routes before path normalization, so non-leading .. and %2E%2E path segments are not neutralized before the static plugin's catch-all route handles the request. A request such as /foo/../deep/secret.txt matches the static route instead of a guarded route, bypassing route-based middleware or guards meant to protect those files. The dot-dot segments survive the decodeURI plus encodeURI round-trip and are then collapsed by @fastify/send before its own traversal guard runs. The fix normalizes the pathname so guarded routes match before the file is served.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you rely on route-based middleware or guards to protect files served by @fastify/static.

Background info

@fastify/static is vulnerable to Path Traversal in versions 5.0.0 - 10.1.0.

How to fix this

Upgrade the @fastify/static library to the patch version.