# CVE-2026-6410: @fastify/static vulnerable to path traversal in directory listing

- Severity: Medium 5.3 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-04-16T13:29:08.120Z
- Modified: 2026-06-17T11:00:47.853Z
- Also known as: GHSA-pr96-94w5-mx2h
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: openjs

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

(As written by CVE List.)

## Affected

- @fastify/static @fastify/static: from 8.0.0 before 9.1.1 (not affected: 9.1.1)
- @fastify/static (npm): from 8.0.0 before 9.1.1
- fastify fastify-static: from 8.0.0 before 9.1.1

## Every score

- openjs: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/fastify/fastify-static/security/advisories/GHSA-pr96-94w5-mx2h> (mitigation, vendor-advisory, web)
- <https://cna.openjsf.org/security-advisories.html> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6410> (advisory)
- <https://github.com/fastify/fastify-static> (package)

## Sources

- CVE List: [CVE-2026-6410](https://www.cve.org/CVERecord?id=CVE-2026-6410), CVE Terms of Use, modified 2026-04-16
- GitHub Advisory Database: [GHSA-pr96-94w5-mx2h](https://github.com/advisories/GHSA-pr96-94w5-mx2h), CC-BY-4.0, modified 2026-04-16
- NVD: [CVE-2026-6410](https://nvd.nist.gov/vuln/detail/CVE-2026-6410), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-6410 · Whole record: https://cve.day/CVE-2026-6410.json · Rebuilt by cve.day 2026-11-25T22:59:18.904Z
