@fastify/static vulnerable to path traversal in directory listing
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Partial Red Hat: 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22 and the CVSS impact.
Summary
@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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| fastify | @fastify/static | 8.0.0 to before 9.1.1 | 9.1.1 | Patch available | CNA |
| — | @fastify/static (npm) | 8.0.0 to before 9.1.1 | 9.1.1 | Patch available | GHSA-pr96-94w5-mx2h |
- @fastify/static Vendorfastify Affected 8.0.0 to before 9.1.1 Fixed in 9.1.1 Patch available CNA
- @fastify/static (npm) Vendor— Affected 8.0.0 to before 9.1.1 Fixed in 9.1.1 Patch available GHSA-pr96-94w5-mx2h
Remediation
- Fix · CNA @fastify/static (@fastify/static) Fixed in 9.1.1
- Fix · GHSA-pr96-94w5-mx2h @fastify/static (npm) Fixed in 9.1.1 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
@fastify/static 9.1.1
2 records Highest priority Priority LOW 2 LOW
Other records, highest priority first
- TI-2026-05629 @fastify/static vulnerable to route guard bypass via encoded path separatorsPriority LOW 27
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux AI (RHEL AI) 3 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-6410
- 2026-10-03 Alias added: GHSA-pr96-94w5-mx2h
References
More Fastify-static vulnerabilities
- TI-2026-15143 @fastify/static vulnerable to route guard bypass via non-canonical path segments CVSS 3.1HIGH 7.5
- TI-2026-12689 @fastify/static vulnerable to route guard bypass via path traversal CVSS 3.1HIGH 7.5
- TI-2021-05825 Uncontrolled resource consumption in https://github.com/fastify/fastify-static CVSS 3.1HIGH 8.8
- TI-2026-06243 @fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths CVSS 3.1MEDIUM 5.3
- TI-2021-05824 Open redirect in https://github.com/fastify/fastify-static CVSS 3.1MEDIUM 6.1
- TI-2026-05629 @fastify/static vulnerable to route guard bypass via encoded path separators CVSS 3.1MEDIUM 5.9
Sources
- CVE-2026-6410 · CVE Program
- CVE-2026-6410 · NVD
- FIRST EPSS
- GHSA-pr96-94w5-mx2h · GitHub Advisory Database · CC BY 4.0
- CVE-2026-6410 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences