CVE-2026-6410

@fastify/static vulnerable to path traversal in directory listing

Published Apr 16, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-pr96-94w5-mx2h @fastify/static vulnerable to path traversal in directory listing
History
Type Values Removed Values Added
CPEs cpe:2.3:a:fastify:fastify-static:*:*:*:*:*:node.js:*:* cpe:2.3:a:fastify:fastify-static:*:*:*:*:*:*:*:*
Type Values Removed Values Added
CPEs cpe:2.3:a:fastify:fastify-static:*:*:*:*:*:node.js:*:*
Type Values Removed Values Added
First Time appeared Fastify
Fastify fastify-static
Vendors & Products Fastify
Fastify fastify-static
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title @fastify/static vulnerable to path traversal in directory listing
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
openjs
Published
Updated
Apr 16, 2026, 2:19 PM
Reserved
Apr 15, 2026, 10:59 PM
Status
Analyzed
Published
Apr 16, 2026, 2:16 PM
Modified
Jun 17, 2026, 11:00 AM
Severity
Moderate
Public date
Apr 16, 2026, 1:29 PM