{"id":"CVE-2026-6410","published":"2026-04-16T13:29:08Z","modified":"2026-04-16T14:19:36Z","title":"@fastify/static vulnerable to path traversal in directory listing","vendor":"@fastify/static","product":"@fastify/static","tier":"tail","description":{"text":"@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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00525,"percentile":0.45438,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-pr96-94w5-mx2h","tags":[]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":9.09},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"fastify-static","affectedVersions":[{"vendor":"@fastify/static","product":"@fastify/static","versions":[">= 8.0.0, < 9.1.1"]}],"fixedVersions":[{"vendor":"@fastify/static","product":"@fastify/static","versions":["9.1.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-16T14:19:22.028552Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@fastify/static","vulnerableRanges":[">=8.0.0, <9.1.1"],"patched":["9.1.1"],"from":["GHSA-pr96-94w5-mx2h"],"provenance":"source"}],"summary":{"text":"The @fastify/static plugin (versions 8.0.0 through 9.1.0) contains a path traversal flaw in its directory listing component, dirList.path(), which resolves directories with path.join() without checking that they stay within the configured static root. A remote, unauthenticated attacker can exploit this over the network with no user interaction when the list option is enabled, obtaining listings of directory and file names for any directory the Node.js process can access, though file contents are not disclosed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:46Z"},"euvd":{"id":"EUVD-2026-23243","exploited":false,"provenance":"source"}}