
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-33011 is a middleware bypass vulnerability in NestJS applications using the @nestjs/platform-fastify adapter, allowing attackers to circumvent GET middleware by sending HTTP HEAD requests. Because Fastify automatically routes HEAD requests to the corresponding GET handlers, any middleware registered for GET routes is completely skipped while the handler itself still executes. The vulnerability affects @nestjs/platform-fastify versions ≤ 11.1.15 (NestJS nest package versions prior to 11.1.16). It was published on March 16, 2026, and assigned a CVSS v3.1 score of 7.5 (High) and a CVSS v4.0 score of 8.7 (High) (Github Advisory, NestJS Security Advisory).
The root cause is classified as CWE-670 (Always-Incorrect Control Flow Implementation): the NestJS middleware dispatch logic in packages/core/middleware/middleware-module.ts only checked whether the incoming request method matched the registered middleware's target method, without accounting for Fastify's built-in behavior of forwarding HEAD requests to GET handlers. As a result, when a HEAD request arrives, the method comparison (actualRequestMethod === requestMethod) fails for GET-registered middleware, causing next() to be called and middleware to be skipped entirely, while Fastify still routes the request to the GET handler. The fix (commit cbdf737) adds an additional condition so that HEAD requests also trigger GET-registered middleware (NestJS Commit, Github Advisory). No authentication or special privileges are required to exploit this flaw — any unauthenticated network attacker can send a crafted HEAD request.
Successful exploitation allows an attacker to bypass authentication, authorization, rate-limiting, logging, or any other middleware applied to GET routes by simply issuing a HEAD request to the same endpoint. The GET handler executes normally on the server side (including any backend logic such as database reads or state changes), while the HTTP response body is suppressed per HEAD semantics — meaning the attacker receives no response body but the server-side operation completes. This can result in unauthorized access to protected operations and sensitive data, and may allow attackers to trigger privileged backend logic without detection by middleware-based security controls (Github Advisory, NestJS Security Advisory).
No public proof-of-concept exploit code has been identified, and there is no evidence of in-the-wild exploitation at this time (Github Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.04% (14th percentile), indicating a low near-term probability of exploitation. However, the attack requires no authentication, no user interaction, and no special conditions beyond the target running a vulnerable NestJS Fastify application, making it trivially exploitable if discovered.
@nestjs/platform-fastify adapter (versions ≤ 11.1.15). Indicators include HTTP response headers such as x-powered-by: fastify or NestJS-specific API patterns.GET /protected-endpoint, send HEAD /protected-endpoint with the same headers and parameters. Example using curl: curl -X HEAD https://target.example.com/protected-endpoint -v200 OK).200 OK on endpoints expected to require authentication.HEAD method requests to protected routes without corresponding authentication tokens or session identifiers; absence of middleware-generated log entries (e.g., auth audit logs) for requests that resulted in handler execution.The vulnerability is fixed in @nestjs/platform-fastify version 11.1.16 (released as part of NestJS v11.1.17 on March 16, 2026). Upgrade to @nestjs/platform-fastify@11.1.16 or later immediately. No configuration-based workaround is documented; upgrading is the only reliable remediation. Security teams should also audit applications running affected versions to determine whether any unauthorized access may have occurred via HEAD requests prior to patching (Github Advisory, NestJS Release).
The advisory was published by NestJS maintainer Kamil Mysliwiec (@kamilmysliwiec) on March 16, 2026, with a same-day patch release. The fix received positive community reception on GitHub, with 18 reactions on the v11.1.17 release notes. No significant broader media coverage or notable external researcher commentary has been identified beyond standard vulnerability database aggregation (NestJS Release).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."