sadrobot

← Back to the monthly list

CVE-2026-129504 @fastify/express · @fastify/express

9.1 Critical

AI summary

In @fastify/express 4.0.0 through 4.0.9, string concatenation of the mount path and plugin prefix (trailing or missing slash) can make path-scoped middleware silently skipped. Unauthenticated remote clients can reach protected routes without any crafted request. Critical (CVSS 9.1); upgrade to 4.0.10 or later.

Official description

@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.

Published
2026-11-21 17:16 UTC
Modified
2026-11-23 21:16 UTC
CVSS
9.1 Critical CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.52% (percentile 37)
ENISA EUVD
EUVD-2026-132556
CISA SSVC
Exploitation: none · Automatable: yes · Technical impact: total
CWE
CWE-436

CVSS vector

Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
none
Scope
unchanged
Confidentiality
high
Integrity
high
Availability
none

References