CVE-2026-7120

MEDIUM CVSS 3.1: 5.3 EPSS 0.22%
Updated Jul 28, 2026
Fastify
Parameter Value
CVSS 5.3 (MEDIUM)
Affected Versions before 10.1.2
Fixed In 10.1.2
Type CWE-180
Vendor Fastify
Public PoC No

@fastify/static evaluates the allowedPath callback before normalizing dot segments and duplicate path separators in the pathname used for file resolution. Versions up to and including 10.1.1 are affected. An unauthenticated attacker can bypass allowedPath restrictions by requesting equivalent non-canonical pathnames, causing files that were intended to be denied to be served anyway.

The bypass does not allow access outside the configured static root by itself, it defeats path-based filtering only. The issue is patched in @fastify/static 10.1.2.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
None
No data modification
Availability
None
No disruption

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Fastify Fastify-Static
cpe:2.3:a:fastify:fastify-static:*:*:*:*:*:*:*:*
10.1.2