Intel

AIKIDO-2026-221297

@fastify/static is vulnerable to Path Traversal

CVE-2026-18427Published Aug 10, 2026
August 10, 2026

75

CVE Score

High

Path Traversal

Are you affected? Scan for Free

TL;DR

@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.

How do I fix this?

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

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.

Versions

0.0.1 - 10.1.2

Fixed in 10.1.3

Background info

@fastify/static is vulnerable to Path Traversal in versions 0.0.1 - 10.1.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea