Vulnerability · Published Jul 23, 2026 · Assigned by openjs

CVE-2026-7120@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths

Medium 5.3

In plain English

A medium-severity security flaw in @fastify/static from @fastify/static. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 31% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.4%top 69.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@fastify/static10.1.2GHSA-8pvw-jcv7-9cmj

Affected products (as reported)

VendorProductVersions
@fastify/static @fastify/static 0 – before 10.1.2

Weakness: CWE-180 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

References