@fastify/express is a compatibility layer allowing Express middleware to operate within the Fastify web framework. A flaw exists where the plugin joins a path-scoped middleware mount path to the Fastify plugin prefix using string concatenation. If the plugin prefix ends with a slash or the mount path lacks a leading slash, the resulting Express mount path fails to align with the route served by the Fastify router. Consequently, Express fails to match the request and passes it along while the Fastify router still dispatches the route, causing the middleware to be silently skipped. This can lead to the exposure of protected routes to unauthenticated clients if path-scoped Express middleware is used for authentication or authorization within a prefixed plugin. This issue affects string, array, and regular-expression mount paths.