Patchfirst
CVE-2022-39288 High · 7.5 EPSS 59.2%

Denial of service in Fastify via Content-Type header

Fix:upgrade fastify to 4.8.1 or later Details ↓

fastify · fastify

Summary

The Fastify web framework for Node.js contains a flaw in how it processes the Content-Type request header, classed as an improper check for unusual or exceptional conditions. An unauthenticated remote attacker who can reach the application over the network can send a malformed Content-Type header, which can crash the application and cause a denial of service; no user interaction is required.

Official description · CVE.org

fastify is a fast and low overhead web framework, for Node.js. Affected versions of fastify are subject to a denial of service via malicious use of the Content-Type header. An attacker can send an invalid Content-Type header that can cause the application to crash. This issue has been addressed in commit `fbb07e8d` and will be included in release version 4.8.1. Users are advised to upgrade. Users unable to upgrade may manually filter out http content with malicious Content-Type headers.

Breakdown
25.1 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 10 Oct 2022. No public exploit code or confirmed exploitation is recorded.

2 related vulnerabilities in the same code over 6 weeks. The latest fix listed for fastify is 5.7.2.

Linked vulnerabilitiesLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. This CVECVE-2022-39288Denial of service in Fastify via Content-Type header10 Oct 2022
  2. relatedHigh

    Why these are linked:

    CVE-2022-41919Fastify vulnerable to Cross-Site Request Forgery (CSRF) attack…22 Nov 2022

Fixes in fastifynpm package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 0.38.0CVE-2018-37117 Jun 2018
  2. 2.15.1CVE-2020-819230 Jul 2020
  3. 4.8.1CVE-2022-3928810 Oct 2022
  4. 4.10.2CVE-2022-4191922 Nov 2022
  5. 5.3.2CVE-2025-3244218 Apr 2025
  6. 5.7.2CVE-2026-252233 Feb 2026Latest listed

Affected versions and fixes

as published in the CVE record

fastify fastify

Affected: >= 4.0.0, < 4.8.1

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: fastify.

Upgrade to 4.8.1 or later

npmnpm install fastify@4.8.1

The first fix for CVE-2022-39288. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
4.0.0 up to 4.8.14.8.1

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

3 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close