{"id":"CVE-2026-7120","published":"2026-07-23T02:48:35Z","modified":"2026-07-23T14:15:22Z","title":"@fastify/static vulnerable to Authorization Bypass via Non-Canonical URL Paths","vendor":"@fastify/static","product":"@fastify/static","tier":"tail","description":{"text":"@fastify/static evaluates the allowedPath callback before normalizing dot segments and duplicate path separators in the pathname used for file resolution. Versions up to and including 10.1.1 are affected. An unauthenticated attacker can bypass allowedPath restrictions by requesting equivalent non-canonical pathnames, causing files that were intended to be denied to be served anyway. The bypass does not allow access outside the configured static root by itself, it defeats path-based filtering only. The issue is patched in @fastify/static 10.1.2.","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.00369,"percentile":0.31579,"provenance":"source"},"cwes":[{"id":"CWE-180","name":"Incorrect Behavior Order: Validate Before Canonicalize"}],"references":[{"url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-8pvw-jcv7-9cmj","tags":[]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[]}],"priority":{"score":10.0,"factors":[{"name":"EPSS percentile","points":6.32},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"fastify-static","affectedVersions":[{"vendor":"@fastify/static","product":"@fastify/static","versions":["< 10.1.2"]}],"fixedVersions":[{"vendor":"@fastify/static","product":"@fastify/static","versions":["10.1.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-23T14:15:15.256744Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@fastify/static","vulnerableRanges":["<10.1.2"],"patched":["10.1.2"],"from":["GHSA-8pvw-jcv7-9cmj"],"provenance":"source"}],"summary":{"text":"The @fastify/static Node.js plugin evaluates its allowedPath callback before normalising dot segments and duplicate path separators in the requested pathname, so the check runs against a non-canonical path. An unauthenticated remote attacker who can send HTTP requests to the server can exploit this by requesting equivalent non-canonical forms of a restricted path, which lets them retrieve files the allowedPath rule was meant to block; the bypass only defeats path-based filtering and does not by itself reach files outside the configured static root.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:01Z"},"euvd":{"id":"EUVD-2026-47870","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-honojs-hono-cve-2021-22964","parents":[{"from":"CVE-2026-15074","to":"CVE-2026-7120","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@fastify/static","fromFixed":"10.1.1","toFixed":"10.1.2","daysApart":0},{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/fastify/fastify-static/commit/db4276f846ba56b21f93768cd6636ee5e2fc58b1","https://github.com/fastify/fastify-static/commit/878c72e920fabacf7e37739bf78057044717bf63"],"basis":"shared function","functions":["fastifyStatic"]},{"kind":"similar","provenance":"machine","score":0.33,"basis":"same product + description similarity"}]},{"from":"CVE-2021-22964","to":"CVE-2026-7120","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/fastify/fastify-static/commit/c31f17d107cb19a0e96733c80a9abf16c56166d4","https://github.com/fastify/fastify-static/commit/878c72e920fabacf7e37739bf78057044717bf63"],"basis":"shared function","functions":["fastifyStatic"]}]}],"packageHistory":[{"cve":"CVE-2026-6410","published":"2026-04-16","fixed":"9.1.1","kev":false},{"cve":"CVE-2026-6414","published":"2026-04-16","fixed":"9.1.1","kev":false},{"cve":"CVE-2026-15074","published":"2026-07-23","fixed":"10.1.1","kev":false},{"cve":"CVE-2026-7120","published":"2026-07-23","fixed":"10.1.2","kev":false}],"package":"npm:@fastify/static"}}