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

- Severity: Medium 5.9 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-04-16T13:09:03.526Z
- Modified: 2026-07-08T08:14:42.025Z
- Also known as: GHSA-x428-ghpx-8j92
- Weaknesses: CWE-177
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: openjs

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

(As written by CVE List.)

## Affected

- @fastify/static @fastify/static: from 8.0.0 before 9.1.1 (not affected: 9.1.1)
- @fastify/static (npm): from 8.0.0 before 9.1.1
- fastify fastify-static: from 8.0.0 before 9.1.1

## Every score

- openjs: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <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://github.com/fastify/fastify-static/security/advisories/GHSA-x428-ghpx-8j92> (vendor-advisory, web)
- <https://cna.openjsf.org/security-advisories.html> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6414> (advisory)
- <https://github.com/fastify/fastify-static> (package)

## Sources

- CVE List: [CVE-2026-6414](https://www.cve.org/CVERecord?id=CVE-2026-6414), CVE Terms of Use, modified 2026-04-16
- GitHub Advisory Database: [GHSA-x428-ghpx-8j92](https://github.com/advisories/GHSA-x428-ghpx-8j92), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2026-6414](https://nvd.nist.gov/vuln/detail/CVE-2026-6414), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-6414 · Whole record: https://cve.day/CVE-2026-6414.json · Rebuilt by cve.day 2026-11-25T22:59:18.902Z
