Path Manipulation Vulnerability in Fastify Plugin by Fastify
CVE-2026-124626
9.1CRITICAL
What is CVE-2026-124626?
The @fastify/express plugin, which enables Express middleware to operate within the Fastify web framework, has a vulnerability affecting versions 4.0.5 through 4.0.9. This issue arises from the plugin's approach to matching path-scoped Express middleware to dynamic segments. In particular, it requires a non-empty value for these segments, while Fastify allows for empty parameters or wildcards. This discrepancy can result in unauthenticated requests bypassing appropriate middleware checks, allowing potential access to protected routes. The issue is addressed in version 4.0.10 and users are urged to upgrade to this version or later for improved security.
Affected Version(s)
@fastify/express 4.0.5 < 4.0.10
@fastify/express 4.0.10
