CVE-2026-6414
CVE-2026-6414 is a medium-severity vulnerability in Fastify Fastify-static with a CVSS 3.x base score of 5.9. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-177.
Key facts
- Severity: Medium (CVSS 3.x base score 5.9)
- EPSS exploit prediction: 0% (35th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-23227
- Weakness: CWE-177
- Affected product: Fastify Fastify-static
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2026-6414?
- @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.
- How severe is CVE-2026-6414?
- CVE-2026-6414 has a CVSS 3.x base score of 5.9, rated medium severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2026-6414 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (35th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-6414?
- CVE-2026-6414 affects Fastify Fastify-static. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-6414?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2026-6414 have an EU (EUVD) identifier?
- Yes. CVE-2026-6414 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-23227.
- When was CVE-2026-6414 published?
- CVE-2026-6414 was published on 2026-04-16 and last updated on 2026-06-17.
References
- https://cna.openjsf.org/security-advisories.html
- https://github.com/fastify/fastify-static/security/advisories/GHSA-x428-ghpx-8j92
- https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69p
- https://github.com/honojs/hono/security/advisories/GHSA-q5qw-h33p-qvwr
Affected products (1)
- cpe:2.3:a:fastify:fastify-static:*:*:*:*:*:*:*:*
More vulnerabilities in Fastify Fastify-static
- CVE-2021-22964 — High (CVSS 8.8): A redirect vulnerability in the `fastify-static` module version >= 4.2.4 and < 4.4.1 allows remote attackers to…
- CVE-2026-15074 — High (CVSS 7.5): @fastify/static up to and including version 10.1.0 fails to reject dot-dot path segments in request pathnames before…
- CVE-2021-22963 — Medium (CVSS 6.1): A redirect vulnerability in the fastify-static module version < 4.2.4 allows remote attackers to redirect users to…
- CVE-2026-7120 — Medium (CVSS 5.3): @fastify/static evaluates the allowedPath callback before normalizing dot segments and duplicate path separators in the…
- CVE-2026-6410 — Medium (CVSS 5.3): @fastify/static versions 8.0.0 through 9.1.0 allow path traversal when directory listing is enabled via the list…
All CVEs affecting Fastify Fastify-static →
Other CWE-177 vulnerabilities
- CVE-2026-59083 — Critical (CVSS 9.1): Improper Handling of URL Encoding (Hex Encoding) vulnerability in Apache Tomcat's rewrite valve allowed security…
- CVE-2026-41041 — Critical (CVSS 9.1): URL path injection via unencoded user-supplied identifiers vulnerability in Apache Gravitino. This issue affects…
- CVE-2026-22037 — High (CVSS 8.4): The @fastify/express plugin adds full Express compatibility to Fastify. A security vulnerability exists in…
- CVE-2026-22031 — High (CVSS 8.4): @fastify/middie is the plugin that adds middleware support on steroids to Fastify. A security vulnerability exists in…
- CVE-2026-15371 — High (CVSS 8.1): Velociraptor's web GUI allows specifying a custom type for columns in tables. The URL type takes the cell value and…
- CVE-2026-29045 — High (CVSS 7.5): Hono is a Web application framework that provides support for any JavaScript runtime. Prior to version 4.12.4, when…