Vulnerability · Published Mar 20, 2026 · Assigned by GitHub_M
CVE-2026-33011Nest Fastify HEAD Request Middleware Bypass
High 8.7
In plain English
A high-severity security flaw 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.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Nest is a framework for building scalable Node.js server-side applications. In versions 11.1.15 and below, a NestJS application using @nestjs/platform-fastify GET middleware can be bypassed because Fastify automatically redirects HEAD requests to the corresponding GET handlers (if they exist). As a result: middleware will be completely skipped, the HTTP response won't include a body (since the response is truncated when redirecting a HEAD request to a GET handler), and the actual handler will still be executed. This issue is fixed in version 11.1.16.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @nestjs/platform-fastify | 11.1.16 | GHSA-wf42-42fg-fg84 |
Affected products (as reported)
Weakness: CWE-670 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/nestjs/nest/security/advisories/GHSA-wf42-42fg-fg84 x_refsource_CONFIRM
- https://github.com/nestjs/nest/commit/cbdf737cd6e7cefa52d05ecea2ae4af95c464614 x_refsource_MISC
- https://github.com/nestjs/nest/releases/tag/v11.1.17 x_refsource_MISC