CVE-2026-129504@fastify/express
Authentication middleware bypass in @fastify/express
Critical 9.1 No auth needed
Follow: this CVE · @fastify/express · @fastify/express We alert you by email or Slack (account required).
- Priority
- 75
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Nov 21, 2026
- Updated
- Nov 23, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
@fastify/express versions 4.0.0 through 4.0.9 incorrectly concatenate the middleware path with the plugin prefix, causing Express to fail matching the route and skip authentication middleware. This exposes protected routes to unauthenticated clients without requiring crafted requests or non-default options.
Show the original NVD text
@fastify/express is a compatibility layer that lets Express middleware run inside the Fastify web framework. In versions 4.0.0 through 4.0.9, the plugin joins a path-scoped middleware's mount path to the Fastify plugin prefix by string concatenation, so when the plugin prefix ends with a slash or the mount path omits its leading slash, the resulting Express mount path does not line up with the route the Fastify router serves. Express then fails to match and passes the request on while the Fastify router still dispatches the route, so the middleware is silently skipped. An application that uses path-scoped Express middleware for authentication or authorization inside a prefixed plugin can expose protected routes to unauthenticated clients, with no crafted request and no non-default option required, and string, array, and regular-expression mount paths are all affected. The issue is fixed in @fastify/express 4.0.10, and users should upgrade to 4.0.10 or later.
What to do
Patch available · fixed versions: 4.0.10
Update @fastify/express to version 4.0.10 or later to fix the path concatenation issue.
- Apply the vendor's security update for @fastify/express.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- @fastify/express · @fastify/express
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.