Intel

AIKIDO-2026-858658

@fastify/static is vulnerable to Authorization Bypass

CVE-2026-7120Published Jul 23, 2026
July 23, 2026

53

CVSS Score

Medium

Authorization Bypass

Are you affected? Scan for Free

TL;DR

@fastify/static evaluates the allowedPath callback against the raw request pathname before normalizing dot segments and duplicate slashes in the pathname used for file resolution. Non-canonical pathnames such as //file, /./file, or /public/../private/file bypass allowedPath filtering while still resolving to the intended file on disk. Applications that use allowedPath as a security boundary to restrict access to specific static files or path subtrees can unintentionally expose files that were meant to be denied. The fix runs allowedPath against the normalized request pathname.

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 the allowedPath callback to restrict access to static files.

Versions

5.0.0 - 10.1.1

Fixed in 10.1.2

Background info

@fastify/static is vulnerable to Authorization Bypass in versions 5.0.0 - 10.1.1.

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