Vulnerability · Published Jun 22, 2026 · Assigned by GitHub_M

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

High 8.7

In plain English

A high-severity incorrect authorization in nest from nestjs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.7High
Exploit odds (30 days)0.5%top 57.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@nestjs/platform-fastify11.1.24GHSA-6v32-fjc9-9qf6

Affected products (as reported)

VendorProductVersions
nestjs nest < 11.1.24

Weakness: CWE-863 · 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

References