Feed/CVE-2026-54281
CVE-2026-54281HIGHCVSS 0.0

Nest: Middleware Bypass on Fastify via Trailing Slash

Published Jun 15, 2026·Updated Jul 18, 2026

NVD Description

### Impact An authentication bypass vulnerability exists in `@nestjs/platform-fastify` (confirmed on version `11.1.24`, the latest available release at time of report). When middleware is registered through NestJS's `MiddlewareConsumer.forRoutes()` API on the Fastify adapter, an unauthenticated client can bypass the Nest middleware registered for that route by simply appending a trailing slash (`/`) to the request URL. This bypass works on the **default Fastify adapter configuration** — no special router options need to be enabled. Applications using the standard CRUD route shape (`GET /resource` and `GET /resource/:id`) are affected when they protect those routes with `MiddlewareConsumer.forRoutes()` middleware. ### Patches Fixed in `@nestjs/platform-fastify@11.1.24` ### References Kudos goes to @a-tt-om

Affected Packages (1)

@nestjs/platform-fastifyNPM
Fixed in = 11.1.23

References

View on NVD Search GitHub Search Google

Get alerted for CVEs like this

Register your stack and get notified within minutes when a matching CVE drops.

Start monitoring free