Skip to content

CVE-2026-54281 Nest: Middleware Bypass on Fastify via Trailing Slash

HighCVSS 8.7 EPSS 0.50%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
nestjs @nestjs/platform-fastify(npm) < 11.1.24; <= 11.1.23 11.1.24 Fixed
nestjs nest = < 11.1.24 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
nestjs nest = < 11.1.24 No fix listed
nestjs @nestjs/platform-fastify(npm) <= 11.1.23 No fix listed
nestjs @nestjs/platform-fastify(npm) < 11.1.24 11.1.24

References