CVE-2026-129504
Published:November 21, 2026
Updated:November 23, 2026
@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.
Affected Packages
https://github.com/fastify/fastify-express.git (GITHUB):
Affected version(s) >=v0.1.0 <v4.0.10 || >=v1.0.0 <v4.0.10 || >=v2.0.0 <v4.0.10 || =v3.0.0 <v4.0.10 || >=v4.0.0 <v4.0.10Fix Suggestion:
Update to version v4.0.10@fastify/express (NPM):
Affected version(s) >=4.0.0 <4.0.10 || >=1.0.0 <4.0.10 || >=2.0.0 <4.0.10 || =3.0.0 <4.0.10Fix Suggestion:
Update to version 4.0.10Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
EPSS
Base Score:
0.49