CVE-2026-54281 PUBLISHED

Nest: Middleware Bypass on Fastify via Trailing Slash

Assigner: GitHub_M
Reserved: 12.06.2026 Published: 22.06.2026 Updated: 23.06.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
CVSS Score: 8.7

Product Status

Vendor nestjs
Product nest
Versions
  • Version < 11.1.24 is affected

References

Problem Types

  • CWE-863: Incorrect Authorization CWE