Express Middleware Vulnerability in Fastify Plugin by Fastify
CVE-2026-135270
7.4HIGH
What is CVE-2026-135270?
The @fastify/express plugin, which allows running Express applications within the Fastify framework, is susceptible to a vulnerability in versions 4.0.5 through 4.0.13. This vulnerability arises when a mount path is incorrectly handled, resulting in middleware not being executed for intended routes. This flaw enables attackers to bypass authentication and access controls on affected routes, while Fastify routes remain unaffected. Users are advised to upgrade to version 4.0.14 or later for resolution. Alternatively, explicit path mounts or enforcing authentication via Fastify hooks are recommended as temporary workarounds.
Affected Version(s)
@fastify/express 4.0.5 < 4.0.14
@fastify/express 4.0.14
