Path-Secured Middleware Vulnerability in Fastify Middleware Engine by Fastify
CVE-2026-132131
7.4HIGH
What is CVE-2026-132131?
The Fastify Middleware Engine, @fastify/middie, has a vulnerability affecting versions 8.3.0 through 9.3.6, where the normalization of path-scoped middleware's mount path does not process an array of mount paths correctly. This issue allows a trailing slash on the array element to persist, resulting in the potential for unauthorized access to protected routes by bypassing essential middleware functionalities such as authentication and authorization. To mitigate this risk, it is crucial for users to upgrade to version 9.3.7 or later and to enforce security checks within Fastify hooks.
Affected Version(s)
@fastify/middie 8.3.0 < 9.3.7
@fastify/middie 9.3.7
