# CVE-2026-6414: @fastify/static vulnerable to route guard bypass via encoded path separators

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-16 · Modified: 2026-04-16
- Aliases: GHSA-x428-ghpx-8j92
- Record: https://cvemate.com/vulnerability/CVE-2026-6414 · JSON: https://cvemate.com/vulnerability/CVE-2026-6414/json

## Description

```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.
```

## Signals

- CVSS: 5.9 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.439%, percentile 39.872%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- fastify fastify-static: ≥ 8.0.0, \< 9.1.1
- @fastify/static @fastify/static: ≥ 8.0.0, \< 9.1.1
- @fastify static (Npm): ≥ 8.0.0, \< 9.1.1

## 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>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6414>
- <https://github.com/fastify/fastify-static>

---

Data as of 2026-12-05T09:21:40.559Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
