Express Middleware Vulnerability in Fastify Framework
CVE-2026-133867
9.1CRITICAL
What is CVE-2026-133867?
The @fastify/express plugin, which allows Express middleware to function within the Fastify framework, contains a vulnerability in versions 4.0.7 to 4.0.9. The issue arises when middleware is configured with regular expressions in a plugin that utilizes a parameterized prefix. In this scenario, the Express matcher fails to process the prefix correctly, leading to a situation where vital middleware for authentication and authorization can be bypassed. As a result, protected routes may be accessible to unauthenticated users. To ensure security and prevent unauthorized access, users are strongly advised to upgrade to @fastify/express version 4.0.10 or above.
Affected Version(s)
@fastify/express 4.0.7 < 4.0.10
@fastify/express 4.0.10
