Middleware Bypass in Fastify Plugin from Fastify
CVE-2026-135205
7.4HIGH
What is CVE-2026-135205?
The @fastify/middie plugin for the Fastify web framework allows for the incorporation of Express-style middleware. A specific issue arises in versions 9.3.6 through 9.3.9 when route or mount paths are defined without a leading slash. This inconsistency leads to scenarios where middleware designated for a route is not executed, allowing requests to bypass essential authentication and access controls. Users are recommended to update to version 9.3.10 or later to mitigate this issue. As a temporary measure, all route and mount paths should begin with a slash, or authentication should be enforced in a Fastify hook such as preHandler.
Affected Version(s)
@fastify/middie 9.3.6 < 9.3.10
@fastify/middie 9.3.10
