Incorrect Authorization Affecting @nestjs/platform-fastify package, versions <11.1.25


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.29% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NESTJSPLATFORMFASTIFY-17374830
  • published18 Jun 2026
  • disclosed15 Jun 2026
  • credita-tt-om

Introduced: 15 Jun 2026

NewCVE-2026-54281  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade @nestjs/platform-fastify to version 11.1.25 or higher.

Overview

@nestjs/platform-fastify is a Nest - modern, fast, powerful node.js web framework (@platform-fastify)

Affected versions of this package are vulnerable to Incorrect Authorization via the MiddlewareConsumer.forRoutes() API on the Fastify adapter. An attacker can gain unauthorized access to protected routes by appending a trailing slash to the request URL, thereby bypassing middleware checks.

CVSS Base Scores

version 4.0
version 3.1