Advisory

GHSA-wf42-42fg-fg84

Also known as: CVE-2026-33011

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]

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-17 18:38 UTC
Modified
2026-03-20 21:37 UTC

Affected packages and fixes

@nestjs/platform-fastify

npm · All systems

Affected

  • introduced 0, fixed 11.1.16 (semver)

Fixed versions

11.1.16

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences