CVE-2026-6414
MEDIUM 5.9CVSS 3.1@fastify/static vulnerable to route guard bypass via encoded path separators
@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.
- Published
- 16 Apr 2026
- Last modified
- 8 Jul 2026
- Assigned by
- ce714d77-add3-4f53-aff5-83d477b104bb
- NVD status
- Analyzed
- Weakness
- CWE-177
- Also known as
- GHSA-x428-ghpx-8j92
- Sources
- NVDJSONOSV GHSA-x428-ghpx-8j92JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | ce714d77-add3-4f53-aff5-83d477b104bb (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fastify | fastify-staticcpe:2.3:a:fastify:fastify-static:*:*:*:*:*:*:*:* |
>= 8.0.0, < 9.1.1 | 9.1.1 |
| OSV | npm | @fastify/static | >= 8.0.0, < 9.1.1 | 9.1.1 |
References
- https://cna.openjsf.org/security-advisories.html · Third Party Advisory, WEB
- https://github.com/fastify/fastify-static/security/advisories/GHSA-x428-ghpx-8j92 · Vendor Advisory, WEB
- https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69p · Not Applicable, WEB
- https://github.com/honojs/hono/security/advisories/GHSA-q5qw-h33p-qvwr · Not Applicable, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-6414 · ADVISORY
- https://github.com/fastify/fastify-static · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 16 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Apr 2026)