Nest: Middleware Bypass on Fastify via Trailing Slash
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-863.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nestjs | nest | before 11.1.24 | 11.1.24 | Patch available | CNA |
| — | @nestjs/platform-fastify (npm) | before 11.1.24 | 11.1.24 | Patch available | GHSA-6v32-fjc9-9qf6 |
- nest Vendornestjs Affected before 11.1.24 Fixed in 11.1.24 Patch available CNA
- @nestjs/platform-fastify (npm) Vendor— Affected before 11.1.24 Fixed in 11.1.24 Patch available GHSA-6v32-fjc9-9qf6
Remediation
- Fix · CNA nest (nestjs) Fixed in 11.1.24
- Fix · GHSA-6v32-fjc9-9qf6 @nestjs/platform-fastify (npm) Fixed in 11.1.24 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-54281
- 2026-10-03 Alias added: GHSA-6v32-fjc9-9qf6
References
More nestjs vulnerabilities
- TI-2025-34537 @nestjs/devtools-integration's CSRF to Sandbox Escape Allows for RCE against JS Developers CVSS 4.0CRITICAL 9.4
- TI-2026-65315 Nest: Remote process termination via a deeply nested microservice message pattern CVSS 3.1HIGH 7.5
- TI-2026-01938 NestJS 11.1.13 - Lack of data validation allowing authentication/authorization bypass CVSS 4.0HIGH 8.2
- TI-2025-42665 Nest has a Fastify URL Encoding Middleware Bypass (TOCTOU) CVSS 4.0MEDIUM 6.9
- TI-2024-19449 File Upload vulnerability in nestjs nest v.10.3.2 allows a remote attacker to execute… CVSS 3.1MEDIUM 5.5
- TI-2026-25458 Nest Fastify HEAD Request Middleware Bypass CVSS 4.0HIGH 8.7
Sources
- CVE-2026-54281 · CVE Program
- CVE-2026-54281 · NVD
- FIRST EPSS
- GHSA-6v32-fjc9-9qf6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences