CVE-2026-54281: CWE-863: Incorrect Authorization in nestjs nest
NestJS framework versions prior to 11.1.24 contain an authentication bypass vulnerability in the @nestjs/platform-fastify package. When middleware is registered using MiddlewareConsumer.forRoutes() on the Fastify adapter, an unauthenticated client can bypass the middleware by appending a trailing slash to the request URL. This issue affects the default Fastify adapter configuration and allows unauthorized access to routes protected by middleware. The vulnerability is fixed in version 11.1.24.
AI Analysis
Technical Summary
CVE-2026-54281 describes an incorrect authorization vulnerability (CWE-863) in the NestJS framework's Fastify adapter prior to version 11.1.24. Specifically, middleware registered via MiddlewareConsumer.forRoutes() can be bypassed by unauthenticated clients if they append a trailing slash to the request URL. This bypass occurs due to the way the Fastify adapter processes routes with trailing slashes, allowing unauthorized access to routes that should be protected by middleware. The vulnerability is resolved in NestJS version 11.1.24.
Potential Impact
An attacker can bypass authentication middleware on affected NestJS Fastify adapter routes by appending a trailing slash to the URL, potentially gaining unauthorized access to protected resources or functionality. This could lead to exposure of sensitive data or unauthorized actions within applications using vulnerable versions of NestJS.
Mitigation Recommendations
Upgrade to NestJS version 11.1.24 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is documented. Patch status is not explicitly stated in the vendor advisory, but the fix is included in version 11.1.24.
CVE-2026-54281: CWE-863: Incorrect Authorization in nestjs nest
Description
NestJS framework versions prior to 11.1.24 contain an authentication bypass vulnerability in the @nestjs/platform-fastify package. When middleware is registered using MiddlewareConsumer.forRoutes() on the Fastify adapter, an unauthenticated client can bypass the middleware by appending a trailing slash to the request URL. This issue affects the default Fastify adapter configuration and allows unauthorized access to routes protected by middleware. The vulnerability is fixed in version 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 the NestJS framework's Fastify adapter prior to version 11.1.24. Specifically, middleware registered via MiddlewareConsumer.forRoutes() can be bypassed by unauthenticated clients if they append a trailing slash to the request URL. This bypass occurs due to the way the Fastify adapter processes routes with trailing slashes, allowing unauthorized access to routes that should be protected by middleware. The vulnerability is resolved in NestJS version 11.1.24.
Potential Impact
An attacker can bypass authentication middleware on affected NestJS Fastify adapter routes by appending a trailing slash to the URL, potentially gaining unauthorized access to protected resources or functionality. This could lead to exposure of sensitive data or unauthorized actions within applications using vulnerable versions of NestJS.
Mitigation Recommendations
Upgrade to NestJS version 11.1.24 or later, where this vulnerability is fixed. No other mitigation or temporary workaround is documented. Patch status is not explicitly stated in the vendor advisory, but the fix is included in version 11.1.24.
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: 06/22/2026, 22:24:20 UTC
Last updated: 06/22/2026, 23:13:55 UTC
Views: 5
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.