CVE-2026-6410
MEDIUM 5.3CVSS 3.1@fastify/static vulnerable to path traversal in directory listing
@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.
- Published
- 16 Apr 2026
- Last modified
- 17 Jun 2026
- Assigned by
- ce714d77-add3-4f53-aff5-83d477b104bb
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-pr96-94w5-mx2h
- Sources
- NVDJSONOSV GHSA-pr96-94w5-mx2hJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | ce714d77-add3-4f53-aff5-83d477b104bb (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fastify | fastify-staticcpe:2.3:a:fastify:fastify-static:*:*:*:*:*:*:*:* |
>= 8.0.0, < 9.1.1 | 9.1.1 |
| OSV | npm | @fastify/static | >= 8.0.0, < 9.1.1 | 9.1.1 |
References
- https://cna.openjsf.org/security-advisories.html · Third Party Advisory, WEB
- https://github.com/fastify/fastify-static/security/advisories/GHSA-pr96-94w5-mx2h · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-6410 · ADVISORY
- https://github.com/fastify/fastify-static · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 16 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Apr 2026)