CVE-2026-2293: NestJS @nestjs/platform-fastify URL Encoding Middleware Bypass Vulnerability

@nestjs/platform-fastify Updated 04 Mar 2026

Summary

02/03/2026
Yes i
High
8.2

CVE-2026-2293: Nest has a Fastify URL Encoding Middleware Bypass. Affects @nestjs/platform-fastify versions < 11.1.14. Fixed in 11.1.14. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

NestJS is a progressive Node.js framework for building efficient and scalable server-side applications. It leverages TypeScript and is heavily inspired by Angular, providing a modular architecture and a rich ecosystem. The @nestjs/platform-fastify package allows NestJS applications to utilize the Fastify web framework, known for its high performance and low overhead. However, a vulnerability has been identified in this package that can lead to security bypasses in middleware checks.

Vulnerability Detail

The vulnerability arises from a mismatch in path canonicalization between middleware matching and route matching within the NestJS Fastify adapter. When certain Fastify path-normalization options are enabled, such as ignoreTrailingSlash, ignoreDuplicateSlashes, and useSemicolonDelimiter, it can allow requests to bypass middleware checks. This means that variant paths may still reach protected handlers without undergoing necessary security checks, leading to potential unauthorized access. The issue is rooted in a fail-open design where security checks and request dispatching utilize different URL interpretations.

How To Fix

Minimum fixed version

11.1.14

This is the first release that contains the fix.

npm install @nestjs/platform-fastify@11.1.14

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can disable the Fastify path-normalization options that are causing the issue. For example, ensure that ignoreTrailingSlash, ignoreDuplicateSlashes, and useSemicolonDelimiter are set to false in your Fastify router options. This can be done in your NestJS application setup as follows:

const app = await 

NestFactory.

create(AppModule, { logger: true });

app.useGlobalPipes(new ValidationPipe());

app.enableShutdownHooks(); await

app.listen(3000);

Conclusion

The CVE-2026-2293 vulnerability in the @nestjs/platform-fastify package poses a significant risk by allowing middleware bypasses due to inconsistent URL interpretations. It is crucial for developers using this package to update to the patched version to ensure the security of their applications.

See every vulnerability recorded for @nestjs/platform-fastify →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 8.2, indicating a high severity level.

Any NestJS application using the @nestjs/platform-fastify package with specific Fastify path-normalization options enabled is affected.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert can help identify if your application is affected by this vulnerability.

Yes, you can temporarily disable the Fastify path-normalization options that are causing the issue as a workaround until you can update the package.

More information can be found in the advisory published by Fluidattacks and on the GitHub advisory database.

Related vulnerabilities

Recent vulnerabilities recorded for @nestjs/platform-fastify.

How To Fix

Minimum fixed version

11.1.14

This is the first release that contains the fix.

npm install @nestjs/platform-fastify@11.1.14

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback