Skip to content
OpenAdvisories
High · 8.7 CVE-2026-54281 EUVD-2026-38398GHSA-6v32-fjc9-9qf6

Nest: Middleware Bypass on Fastify via Trailing Slash

Published Jun 22, 2026 · Updated Jun 24, 2026 · Assigned by GitHub_M

Description

Nest is a framework for building scalable Node.js server-side applications. Prior to 11.1.24, an authentication bypass vulnerability exists in @nestjs/platform-fastify. 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. This vulnerability is fixed in 11.1.24.

Affected products

VendorProductAffectedFixed
nestjs nest < 11.1.24 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @nestjs/platform-fastify < 11.1.24 11.1.24 GHSA-6v32-fjc9-9qf6

References