Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @nestjs/platform-fastify
  4. ›
  5. CVE-2026-54281

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

June 15, 2026

An authentication bypass vulnerability exists in @nestjs/platform-fastify (confirmed on version 11.1.24, the latest available release at time of report). 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 — no special router options need to be enabled. Applications using the standard CRUD route shape (GET /resource and GET /resource/:id) are affected when they protect those routes with MiddlewareConsumer.forRoutes() middleware.

References

  • github.com/advisories/GHSA-6v32-fjc9-9qf6
  • github.com/nestjs/nest/security/advisories/GHSA-6v32-fjc9-9qf6
  • nvd.nist.gov/vuln/detail/CVE-2026-54281

Code Behaviors & Features

Detect and mitigate CVE-2026-54281 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 11.1.24

Fixed versions

  • 11.1.24

Solution

Upgrade to version 11.1.24 or above.

Impact 8.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

npm/@nestjs/platform-fastify/CVE-2026-54281.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:22 +0000.