Multiple Path-Specific Middleware Vulnerability in Fastify Middleware Engine
CVE-2026-132133
What is CVE-2026-132133?
The @fastify/middie middleware engine for Fastify fails to handle duplicate slashes in path-scoped middleware, allowing scenarios where critical checks like authentication and authorization may be bypassed. When applications enable the 'ignoreDuplicateSlashes' router option, the middleware can misinterpret paths with doubled slashes, preventing it from matching and executing necessary security measures. This issue particularly arises when mount paths and plugin prefixes inadvertently introduce duplicate slashes. Users should upgrade to @fastify/middie version 9.3.7 or later for a fix and consider implementing authorization enforcement in a Fastify hook to mitigate risks before handling requests.
Affected Version(s)
@fastify/middie 0 < 9.3.7
@fastify/middie 9.3.7
