CVE-2026-6414
mediumpriority · track · 0EPSS 0.004 · 36 %ileEUUSEPSS · scored 2026-10-27
@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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-x428-ghpx-8j92@fastify/static vulnerable to route guard bypass via encoded path separators2026-04-16ghsa · osvUS
### Impact `@fastify/static` v9.1.0 and earlier decodes percent-encoded path separators (`%2F`) before filesystem resolution, but Fastify's router treats them as literal characters. This creates a routing mismatch: route guards on `/admin/*` do not match `/admin%2Fsecret.html`, but @fastify/static decodes it to `/admin/secret.html` and serves the file. Applications that rely on route-based middleware or guards to protect files served by @fastify/static can be bypassed with encoded path separators. ### Patches Upgrade to `@fastify/static` >= 9.1.1. ### Workarounds None. Upgrade to the patched version.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2026-6414cnnvd
- https://github.com/fastify/fastify-static/releasesPatchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2026-6414cnnvd
- https://cna.openjsf.org/security-advisories.htmlenisa_euvd
- https://github.com/fastify/fastify-static/security/advisories/GHSA-x428-ghpx-8j92enisa_euvd
- https://github.com/fastify/middie/security/advisories/GHSA-cxrg-g7r8-w69penisa_euvd
- https://github.com/honojs/hono/security/advisories/GHSA-q5qw-h33p-qvwrenisa_euvd
- https://cna.openjsf.org/security-advisories.htmlThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan