Description
A vulnerability in @fastify/middie versions < 9.2.0 can result in authentication/authorization bypass when using path-scoped middleware (for example, app.use('/secret', auth)).
When Fastify router normalization options are enabled (such as ignoreDuplicateSlashes, useSemicolonDelimiter, and related trailing-slash behavior), crafted request paths may bypass middleware checks while still being routed to protected handlers.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| @fastify/middie | @fastify/middie | 0.0.0 – < 9.2.0 | 9.2.0 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | @fastify/middie | < 9.2.0 | 9.2.0 | GHSA-8p85-9qpw-fwgw |