Live threats

All CVEs / Fastify

CVE-2026-7120Fastify-static

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
—
Auth required
No
Published
Jul 23, 2026
Updated
Jul 28, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-180
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Fastify-static.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @fastify/static < 10.1.2 10.1.2 npm install @fastify/static@10.1.2

Per OSV / GitHub Advisories (GHSA-8pvw-jcv7-9cmj). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
fastifyfastify-static< 10.1.2

Official sources

References

Links published by the sources. Open them with care.