Technical impact
The vulnerability is in the @fastify/express plugin, which allows Express middleware and applications to run inside the Fastify framework. In versions prior to 4.0.14, a request containing an empty dynamic route parameter is accepted by Fastify’s router but an Express middleware or sub‑application mounted for that exact path is not executed. Because Express requires non‑empty route parameters, the middleware is skipped. Likewise, an unanchored regular‑expression mount passed to the plugin can be bypassed. This behavior lets an attacker bypass authentication or other access‑control checks that rely on the Express middleware, potentially granting unauthorized access to protected resources. The practical impact depends on what the empty route value selects within the application, but the weakness can lead to full privilege escalation if critical endpoints are exposed.
Affected Systems
The affected product is the Node.js @fastify/express module, used to integrate Express middleware into Fastify applications. All releases of @fastify/express earlier than version 4.0.14 are impacted. Systems that use Fastify as a web framework and mount Express routers or sub‑applications through this plugin are at risk.
Risk and Exploitability
The CVSS score of the issue is 9.1, indicating a high severity. The EPSS score is not available, so the current exploitation probability cannot be quantified from the data. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is an HTTP request crafted to trigger the bypass; an attacker needs network access to the application and must inject a route with an empty dynamic segment. Because only the Express middleware is affected, the attacker can gain access to endpoints protected solely by that middleware without needing additional privileges.