Middleware Bypass in Fastify Plugin by Fastify
CVE-2026-22037
8.4HIGH
What is CVE-2026-22037?
A security issue exists in the @fastify/express plugin for Fastify, where middleware registered with specific path prefixes can be bypassed using URL-encoded characters. For example, the encoded URL /%61dmin can allow access to the /admin route, circumventing the middleware constraints due to a failure in matching the encoded path. This allows attackers to reach protected endpoints without the proper middleware checks. Version 4.0.3 of the @fastify/express plugin has released a patch to mitigate this vulnerability.
Affected Version(s)
fastify-express < 4.0.3
