Vulnerability GHSA-wf42-42fg-fg84

High Risk
HIGH RISK
CVSS Score: 8.0
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
6 months ago
March 17, 2026 at 06:38 PM UTC
Nest Fastify HEAD Request Middleware Bypass
6.0.0-alpha.3 - 11.1.15
6.0.0-alpha.3 - 11.1.15

Summary

Nest Fastify HEAD Request Middleware Bypass

Details

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/[email protected]

Impacted packages

Timeline

Published
6 months ago
March 17, 2026 at 06:38 PM UTC
Fixed (11.1.16)
6 months ago
March 05, 2026 at 01:21 PM UTC
Last Modified
6 months ago
March 20, 2026 at 09:37 PM UTC