Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/fastify@0.12.0
purl pkg:npm/fastify@0.12.0
Next non-vulnerable version 5.8.5
Latest non-vulnerable version 5.8.5
Risk 4.2
Vulnerabilities affecting this package (6)
Vulnerability Summary Fixed by
VCID-4pu6-91xp-kud3
Aliases:
CVE-2018-3711
GHSA-mq6c-fh97-4gwv
Denial of Service vulnerability with large JSON payloads in fastify
0.38.0
Affected by 5 other vulnerabilities.
VCID-6ht9-gg8u-9qax
Aliases:
CVE-2026-25224
GHSA-mrq3-vjjr-p77c
Fastify is a fast and low overhead web framework, for Node.js. Prior to version 5.7.3, a denial-of-service vulnerability in Fastify’s Web Streams response handling can allow a remote client to exhaust server memory. Applications that return a ReadableStream (or Response with a Web Stream body) via reply.send() are impacted. A slow or non-reading client can trigger unbounded buffering when backpressure is ignored, leading to process crashes or severe degradation. This issue has been patched in version 5.7.3.
5.7.3
Affected by 3 other vulnerabilities.
VCID-8p2p-977a-qqb6
Aliases:
CVE-2026-25223
GHSA-jx2c-rxcm-jvmq
Fastify is a fast and low overhead web framework, for Node.js. Prior to version 5.7.2, a validation bypass vulnerability exists in Fastify where request body validation schemas specified by Content-Type can be completely circumvented. By appending a tab character (\t) followed by arbitrary content to the Content-Type header, attackers can bypass body validation while the server still processes the body as the original content type. This issue has been patched in version 5.7.2.
5.7.2
Affected by 4 other vulnerabilities.
VCID-f1g6-gvqq-6kbf
Aliases:
CVE-2022-39288
GHSA-455w-c45v-86rg
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.
4.8.1
Affected by 3 other vulnerabilities.
VCID-g4ar-bpke-2qc2
Aliases:
CVE-2026-3635
GHSA-444r-cwp2-x5xf
Summary When trustProxy is configured with a restrictive trust function (e.g., a specific IP like trustProxy: '10.0.0.1', a subnet, a hop count, or a custom function), the request.protocol and request.host getters read X-Forwarded-Proto and X-Forwarded-Host headers from any connection — including connections from untrusted IPs. This allows an attacker connecting directly to Fastify (bypassing the proxy) to spoof both the protocol and host seen by the application. Affected Versions fastify <= 5.8.2 Impact Applications using request.protocol or request.host for security decisions (HTTPS enforcement, secure cookie flags, CSRF origin checks, URL construction, host-based routing) are affected when trustProxy is configured with a restrictive trust function. When trustProxy: true (trust everything), both host and protocol trust all forwarded headers — this is expected behavior. The vulnerability only manifests with restrictive trust configurations.
5.8.3
Affected by 1 other vulnerability.
VCID-t6pc-rnnq-g3gv
Aliases:
CVE-2020-8192
GHSA-xw5p-hw6r-2j98
Denial of service in fastify
2.15.1
Affected by 4 other vulnerabilities.
3.0.0
Affected by 5 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-12T21:37:18.566676+00:00 GitLab Importer Affected by VCID-g4ar-bpke-2qc2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/fastify/CVE-2026-3635.yml 38.6.0
2026-06-12T20:54:38.088486+00:00 GitLab Importer Affected by VCID-6ht9-gg8u-9qax https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/fastify/CVE-2026-25224.yml 38.6.0
2026-06-12T20:54:35.552585+00:00 GitLab Importer Affected by VCID-8p2p-977a-qqb6 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/fastify/CVE-2026-25223.yml 38.6.0
2026-06-12T18:35:33.119999+00:00 GitLab Importer Affected by VCID-f1g6-gvqq-6kbf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/fastify/CVE-2022-39288.yml 38.6.0
2026-06-12T17:23:32.477327+00:00 GitLab Importer Affected by VCID-t6pc-rnnq-g3gv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/fastify/CVE-2020-8192.yml 38.6.0
2026-06-12T16:59:57.565965+00:00 GitLab Importer Affected by VCID-4pu6-91xp-kud3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/fastify/CVE-2018-3711.yml 38.6.0