@nestjs/platform-fastify is vulnerable to Authentication bypass via path-scoped middleware skip
80
High Risk
@nestjs/platform-fastify matches path-scoped Nest middleware against the raw request target, while the Fastify router resolves that target to a path before dispatching. A request written in absolute form, such as GET http://host/path instead of GET /path, therefore reaches the route handler while middleware bound to that path never runs, so authentication, authorization, rate limiting, or any other guard attached to specific routes is silently skipped. The fix replaces the stale bundled @fastify/middie fork with the upstream package, resolves absolute-form targets before middleware matching, and aligns router options between the router and the middleware engine.
You are affected if you are using a version that falls within the vulnerable range.
@nestjs/platform-fastify is vulnerable to Authentication bypass via path-scoped middleware skip in versions 6.0.0 - 11.2.3 and 12.0.0 - 12.0.1.
Upgrade the @nestjs/platform-fastify library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.