GHSA-wf42-42fg-fg84

Suggest an improvement
Source
https://github.com/advisories/GHSA-wf42-42fg-fg84
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-wf42-42fg-fg84/GHSA-wf42-42fg-fg84.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-wf42-42fg-fg84
Aliases
Published
2026-03-17T18:38:38Z
Modified
2026-03-20T21:37:35.417540Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N CVSS Calculator
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/platform-fastify@11.1.16

Database specific
{
    "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"
}
References

Affected packages

npm / @nestjs/platform-fastify

Package

Name
@nestjs/platform-fastify
View open source insights on deps.dev
Purl
pkg:npm/%40nestjs/platform-fastify

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
11.1.16

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-wf42-42fg-fg84/GHSA-wf42-42fg-fg84.json"
last_known_affected_version_range
"<= 11.1.15"