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:
Fixed in @nestjs/platform-fastify@11.1.16
{
"severity": "HIGH",
"cwe_ids": [
"CWE-670"
],
"github_reviewed": true,
"github_reviewed_at": "2026-03-17T18:38:38Z",
"nvd_published_at": "2026-03-20T05:16:15Z"
}