@fastify/static is vulnerable to Path Traversal
75
High Risk
@fastify/static is vulnerable to a bypass of route-based middleware and guards via non-canonical . and // path segments. This lets an unauthenticated request read files in the static root that a route guard was meant to protect, defeating route-level authorization. The fix canonicalizes the pathname used for routing and serving, including rejecting backslashes.
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.
@fastify/static is vulnerable to Path Traversal in versions 0.0.1 - 10.1.2.
Upgrade the @fastify/static library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant