Live threats

All CVEs / Fastify

CVE-2026-6410Fastify-static

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
—
Auth required
No
Published
Apr 16, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
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 versions 8.0.0 through 9.1.0 allow path traversal when directory listing is enabled via the list option. The dirList.path() function resolves directories outside the configured static root using path.join() without a containment check. A remote unauthenticated attacker can obtain directory listings for arbitrary directories accessible to the Node.js process, disclosing directory and file names. File contents are not disclosed. Upgrade to @fastify/static 9.1.1 to fix this issue. As a workaround, disable directory listing by removing the list option from the plugin configuration.

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 ≥ 8.0.0 < 9.1.1 9.1.1 npm install @fastify/static@9.1.1

Per OSV / GitHub Advisories (GHSA-pr96-94w5-mx2h). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
fastifyfastify-static≥ 8.0.0 < 9.1.1

Official sources

References

Links published by the sources. Open them with care.