CVE-2026-33011: Nest Fastify HEAD Request Middleware Bypass Vulnerability

@nestjs/platform-fastify Updated 17 Mar 2026

Summary

17/03/2026
Yes i
High
8.7

CVE-2026-33011: Nest Fastify HEAD Request Middleware Bypass. Affects @nestjs/platform-fastify versions < 11.1.16. Fixed in 11.1.16. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The @nestjs/platform-fastify package is a part of the NestJS framework, which is designed for building efficient and scalable server-side applications using Node.js. This package provides an integration layer for Fastify, a fast and low-overhead web framework. It allows developers to leverage Fastify's performance benefits while utilizing NestJS's powerful features. However, a vulnerability has been identified that allows GET middleware to be bypassed when handling HEAD requests, potentially leading to unintended behavior in applications.

Vulnerability Detail

The vulnerability arises from the way Fastify handles HEAD requests. When a HEAD request is made, Fastify automatically redirects it to the corresponding GET handler if it exists. This redirection causes middleware to be completely skipped, meaning that any security checks or processing that would normally occur in the middleware are not executed. Additionally, the HTTP response for a HEAD request will not include a body, as it is truncated during the redirection. This can lead to security implications, as the actual handler will still be executed without the expected middleware protections in place.

How To Fix

Minimum fixed version

11.1.16

This is the first release that contains the fix.

npm install @nestjs/platform-fastify@11.1.16

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

Workaround

As a temporary workaround, you can implement custom middleware that checks the request method and explicitly handles HEAD requests differently, ensuring that the necessary security checks are performed. For example:

app.use((req, res, next) => {
  if (req.method === 'HEAD') {
    // Perform necessary checks or processing
  }

next();

});

Conclusion

In summary, the CVE-2026-33011 vulnerability in the @nestjs/platform-fastify package allows for a bypass of GET middleware when handling HEAD requests. It is crucial to update to the patched version 11.1.16 to mitigate this risk. Additionally, implementing workarounds can provide temporary relief until the update is applied.

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

Share this vulnerability

FAQ

The vulnerability allows GET middleware to be bypassed for HEAD requests, leading to potential security risks.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The consequences include skipped middleware processing, which may lead to security checks not being executed, exposing the application to risks.

Yes, the vulnerability has been fixed in version 11.1.16 of the @nestjs/platform-fastify package.

The CVSS score for this vulnerability is 8.7, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for @nestjs/platform-fastify.

How To Fix

Minimum fixed version

11.1.16

This is the first release that contains the fix.

npm install @nestjs/platform-fastify@11.1.16

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