{"id":"CVE-2026-6414","state":"PUBLISHED","title":"@fastify/static vulnerable to route guard bypass via encoded path separators","description":"@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.","publishedAt":"2026-04-16T13:09:03.526Z","updatedAt":"2026-04-16T13:48:52.393Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/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/middie/security/advisories/GHSA-cxrg-g7r8-w69p","https://github.com/honojs/hono/security/advisories/GHSA-q5qw-h33p-qvwr","https://github.com/fastify/fastify-static/security/advisories/GHSA-x428-ghpx-8j92","https://cna.openjsf.org/security-advisories.html"],"weaknesses":["CWE-177"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/6xxx/CVE-2026-6414.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-6414","state":"PUBLISHED","datePublished":"2026-04-16T13:09:03.526Z","dateUpdated":"2026-04-16T13:48:52.393Z","assignerShortName":"openjs","assignerOrgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateReserved":"2026-04-15T23:37:33.949Z"},"containers":{"cna":{"title":"@fastify/static vulnerable to route guard bypass via encoded path separators","descriptions":[{"lang":"en","value":"@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."}],"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/middie/security/advisories/GHSA-cxrg-g7r8-w69p"},{"url":"https://github.com/honojs/hono/security/advisories/GHSA-q5qw-h33p-qvwr"},{"url":"https://github.com/fastify/fastify-static/security/advisories/GHSA-x428-ghpx-8j92"},{"url":"https://cna.openjsf.org/security-advisories.html"}],"metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","baseScore":5.9,"baseSeverity":"MEDIUM"},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-177","lang":"en","description":"CWE-177: Improper Handling of URL Encoding (Hex Encoding)","type":"CWE"}]}],"providerMetadata":{"shortName":"openjs","orgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateUpdated":"2026-04-16T13:09:03.526Z"},"credits":[{"lang":"en","type":"reporter","value":"blakeembrey"},{"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-16T13:48:04.954479Z","id":"CVE-2026-6414","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-16T13:48:52.393Z"}}]}}}