Intel

AIKIDO-2026-742982

@nestjs/platform-fastify is vulnerable to Authentication bypass via path-scoped middleware skip

Authentication bypass via path-scoped middleware skipGHSA-9c5c-9qcx-q35q Published Today

80

High Risk

This Affects:

JS@nestjs/platform-fastify
6.0.0 - 11.2.3
Fixed in 11.2.4
12.0.0 - 12.0.1
Fixed in 12.0.2
Are you affected? Scan for Free

TL;DR

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

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

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

How to fix this

Upgrade the @nestjs/platform-fastify library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform