Elevated
@fastify/middie middleware bypass in Fastify
CVE-2026-135205
Attackers can slip past login checks to reach hidden pages on web servers.
- CVE
- CVE-2026-135205 (opens in a new tab)
- Score
- CVSS 7.4
- First seen
7.4
Products
Mitigation
Update to @fastify/middie 9.3.10 or later. Until then, begin all route and mount paths with a slash, or enforce authentication in a hook such as preHandler that runs after the router resolves the request.
Summary
Routes written without a leading slash inside a prefixed plugin skip the middleware mounted for them, so attackers can bypass authentication and other middleware-based access controls. Versions 9.3.6 through 9.3.9 are affected.
Affected when
- @fastify/middie 9.3.6 through 9.3.9
- Plugin registered under a prefix with routes written without a leading slash
2 other Incidents of this product in the last 30 days
Incidents by product: @fastify/middie
Other recent Incidents of @fastify/middie
Read the CVE record · cve.org (opens in a new tab)
- CVE record: cve.org (opens in a new tab)