CVE-2026-33011: Nest Fastify HEAD Request Middleware Bypass
(updated )
In 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).
- The actual handler will still be executed.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-33011 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →