CVE-2026-6410

@fastify/static vulnerable to path traversal in directory listing

MEDIUM
5.3
CVSS Score
Published: April 16, 2026 at 01:29 PM UTC
Updated: June 17, 2026 at 11:00 AM UTC
2 products affected across 2 vendorsFastify Static@fastify/static

Using @fastify/static by @fastify/static?

Get instant alerts when new vulnerabilities affect @fastify/static - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

Description

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

8.0.0 ≤ v < 9.1.1
8.0.0 ≤ v < 9.1.18.0.0
Vendor states this is fixed in 9.1.1 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (2)

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.3MEDIUMopenjs
Vector?

Quick Info

StatusANALYZED
CWE
CWE-22

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card