All reports
High

Nest Fastify HEAD Request Middleware Bypass

Affected versions

Affected versions
<= 11.1.15
Fixed version
11.1.16

Exploitation

CVE-2026-33011

Probability of exploitation in the next 30 days: 0.39%

FIRST EPSS · 2026-11-20

Description

Impact

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.

Patches

Fixed in @nestjs/platform-fastify@11.1.16

Links

Credits

  • kamilmysliwiec