Path-Scoped Middleware Vulnerability in Fastify Middleware Engine
CVE-2026-133250
What is CVE-2026-133250?
The @fastify/middie middleware engine for the Fastify web framework contains a vulnerability where path-scoped middleware may not be invoked correctly. This occurs in versions up to and including 9.3.7 due to discrepancies in path interpretation between middie and Fastify's router. Consequently, an unauthenticated client could gain access to handlers that are protected by authentication, authorization, or rate-limiting middleware, exposing the application to potential exploitation. This issue arises from various scenarios including empty parameter values, non-standard request targets, or literal percent characters in the mount path. It is critical for users of affected versions to upgrade to 9.3.8 or later to mitigate this security risk.
Affected Version(s)
@fastify/middie 0 < 9.3.8
@fastify/middie 9.3.8
