{"id":"CVE-2026-6414","aliases":["CVE-2026-6414","GHSA-x428-ghpx-8j92"],"related":[],"kind":"vulnerability","state":"published","title":"@fastify/static vulnerable to route guard bypass via encoded path separators","summary":"@fastify/static versions 8.0.0 through 9.1.0 decode percent-encoded path separators (%2F) before filesystem resolution, while Fastify's router treats them as literal characters. This mismatch allows attackers to bypass route-based middleware or guards that protect files served by @fastify/static. For example, a route guard on a protected path can be circumvented by encoding the path separator in the URL. Upgrade to @fastify/static 9.1.1 to fix this issue. There are no workarounds.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@fastify/static versions 8.0.0 through 9.1.0 decode percent-encoded path separators (%2F) before filesystem resolution, while Fastify's router treats them as literal characters. This mismatch allows attackers to bypass route-based middleware or guards that protect files served by @fastify/static. For example, a route guard on a protected path can be circumvented by encoding the path separator in the URL. Upgrade to @fastify/static 9.1.1 to fix this issue. There are no workarounds.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n`@fastify/static` v9.1.0 and earlier decodes percent-encoded path separators (`%2F`) before filesystem resolution, but Fastify's router treats them as literal characters. This creates a routing mismatch: route guards on `/admin/*` do not match `/admin%2Fsecret.html`, but @fastify/static decodes it to `/admin/secret.html` and serves the file.\n\nApplications that rely on route-based middleware or guards to protect files served by @fastify/static can be bypassed with encoded path separators.\n\n### Patches\n\nUpgrade to `@fastify/static` >= 9.1.1.\n\n### Workarounds\n\nNone. Upgrade to the patched version.","format":"markdown","source":"ghsa"}],"published":"2026-04-16T13:09:03.526Z","modified":"2026-07-08T08:14:42.025Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-177"],"affected":[{"ranges":[{"type":"semver","introduced":"8.0.0","fixed":"9.1.1","status":"affected"},{"type":"semver","version":"9.1.1","status":"unaffected"}],"vendor":"@fastify/static","product":"@fastify/static","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"9.1.1"}],"ecosystem":"npm","package":"@fastify/static","purl":"pkg:npm/%40fastify/static","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"8.0.0","fixed":"9.1.1"}],"vendor":"fastify","product":"fastify-static","cpe":"cpe:2.3:a:fastify:fastify-static:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69p","tags":["not-applicable","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/honojs/hono/security/advisories/GHSA-q5qw-h33p-qvwr","tags":["not-applicable","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-x428-ghpx-8j92","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6414","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fastify-static","tags":["package"],"sources":["ghsa"]}],"credits":["blakeembrey","mcollina","UlisesGascon","climba03003"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-16T13:48:04.954Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-6414","url":"https://www.cve.org/CVERecord?id=CVE-2026-6414","licence":"CVE Terms of Use","modified":"2026-04-16T13:48:52.393Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x428-ghpx-8j92","url":"https://github.com/advisories/GHSA-x428-ghpx-8j92","licence":"CC-BY-4.0","modified":"2026-07-08T08:14:42.025Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-6414","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6414","licence":"Public domain","modified":"2026-06-17T11:00:48.070Z"}],"updatedAt":"2026-11-25T22:59:18.902Z","epss":{"score":0.00429,"percentile":0.3906,"date":"2026-12-01T12:00:22.000Z"}}