Path Traversal Vulnerability in Fastify Static Plugin for Node.js
CVE-2026-7120

5.3MEDIUM

Key Information:

Vendor
CVE Published:
23 July 2026

What is CVE-2026-7120?

The Fastify Static plugin for Node.js contains a vulnerability where the allowedPath callback is evaluated before normalizing path segments. This flaw allows an unauthenticated attacker to bypass path restrictions through non-canonical pathnames, potentially allowing access to files that should be restricted. Although the bypass itself does not grant access to files outside the static root directory, it compromises path-based access controls. All versions up to and including 10.1.1 are affected, with fixes provided in version 10.1.2.

Affected Version(s)

@fastify/static 0 < 10.1.2

@fastify/static 10.1.2

References

CVSS V3.1

Score:
5.3
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

yuki-matsuhashi
mcollina
UlisesGascon
.