{"id":"CVE-2026-6410","state":"PUBLISHED","title":"@fastify/static vulnerable to path traversal in directory listing","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.","publishedAt":"2026-04-16T13:29:08.120Z","updatedAt":"2026-04-16T14:19:36.780Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","source":"openjs"},"assigner":"openjs","products":["@fastify/static @fastify/static"],"affected":[{"vendor":"@fastify/static","product":"@fastify/static","packageURL":"pkg:npm/@fastify/static","defaultStatus":"unaffected","versions":[{"version":"8.0.0","status":"affected","lessThan":"9.1.1","versionType":"semver"},{"version":"9.1.1","status":"unaffected","versionType":"semver"}]}],"references":["https://github.com/fastify/fastify-static/security/advisories/GHSA-pr96-94w5-mx2h","https://cna.openjsf.org/security-advisories.html"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/6xxx/CVE-2026-6410.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-6410","state":"PUBLISHED","datePublished":"2026-04-16T13:29:08.120Z","dateUpdated":"2026-04-16T14:19:36.780Z","assignerShortName":"openjs","assignerOrgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateReserved":"2026-04-15T22:59:38.193Z"},"containers":{"cna":{"title":"@fastify/static vulnerable to path traversal in directory listing","descriptions":[{"lang":"en","value":"@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":[{"vendor":"@fastify/static","product":"@fastify/static","packageURL":"pkg:npm/@fastify/static","defaultStatus":"unaffected","versions":[{"version":"8.0.0","status":"affected","lessThan":"9.1.1","versionType":"semver"},{"version":"9.1.1","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-pr96-94w5-mx2h"},{"url":"https://cna.openjsf.org/security-advisories.html"}],"metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","baseScore":5.3,"baseSeverity":"MEDIUM"},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"openjs","orgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateUpdated":"2026-04-16T13:29:08.120Z"},"credits":[{"lang":"en","type":"finder","value":"yuki-matsuhashi"},{"lang":"en","type":"remediation developer","value":"mcollina"},{"lang":"en","type":"remediation reviewer","value":"UlisesGascon"},{"lang":"en","type":"remediation reviewer","value":"climba03003"}],"x_generator":{"engine":"cve-kit 1.0.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-16T14:19:22.028552Z","id":"CVE-2026-6410","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-16T14:19:36.780Z"}}]}}}