CVE-2026-54281: CWE-863: Incorrect Authorization in nestjs nest
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.
AI Analysis
Technical Summary
CVE-2026-54281 describes an incorrect authorization vulnerability (CWE-863) in NestJS's @nestjs/platform-fastify package. Specifically, in versions before 11.1.24, middleware registered via MiddlewareConsumer.forRoutes() on the Fastify adapter can be bypassed by unauthenticated clients by adding a trailing slash to the request URL. This allows unauthorized access to routes that should be protected by middleware. The vulnerability is resolved in version 11.1.24.
Potential Impact
This vulnerability allows unauthenticated clients to bypass middleware protections, potentially gaining unauthorized access to protected routes or resources when using the Fastify adapter with default configuration. This can lead to unauthorized actions or data exposure depending on the middleware's purpose.
Mitigation Recommendations
Upgrade NestJS to version 11.1.24 or later, where this authentication bypass vulnerability is fixed. There is no official patch or temporary workaround detailed, so applying the official fix is recommended.
CVE-2026-54281: CWE-863: Incorrect Authorization in nestjs nest
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.
CVSS v4.0
Score 8.7high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-54281 describes an incorrect authorization vulnerability (CWE-863) in NestJS's @nestjs/platform-fastify package. Specifically, in versions before 11.1.24, middleware registered via MiddlewareConsumer.forRoutes() on the Fastify adapter can be bypassed by unauthenticated clients by adding a trailing slash to the request URL. This allows unauthorized access to routes that should be protected by middleware. The vulnerability is resolved in version 11.1.24.
Potential Impact
This vulnerability allows unauthenticated clients to bypass middleware protections, potentially gaining unauthorized access to protected routes or resources when using the Fastify adapter with default configuration. This can lead to unauthorized actions or data exposure depending on the middleware's purpose.
Mitigation Recommendations
Upgrade NestJS to version 11.1.24 or later, where this authentication bypass vulnerability is fixed. There is no official patch or temporary workaround detailed, so applying the official fix is recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-12T17:13:32.280Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a39b299eed863c81e7e85da
Added to database: 06/22/2026, 22:09:29 UTC
Last enriched: 07/18/2026, 19:27:08 UTC
Last updated: 08/06/2026, 12:41:11 UTC
Views: 119
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.