Vulnerabilities in pkg:npm/fastify
PACKAGECVE-2026-92081 is a MODERATE (CVSS 5.9) denial of service vulnerability (CWE-248: Uncaught Exception) affecting Fastify libraries in the npm ecosystem. The issue involves fastify vulnerable to denial of service via unhandled exception on http/2 trailer responses. Remediation is available by upgrading affected packages to version 5.12.5.
pkg:npm/fastify
Vulnerability advisories affecting package pkg:npm/fastify. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-4mh8-r7rc-xpvc | CVE-2026-92081 | MODERATE | fastify vulnerable to Denial of Service via unhandled exception on HTTP/2 trailer responses |
| GHSA-667r-xxjv-c9mm | CVE-2026-84504 | HIGH | fastify vulnerable to request body replacement via an async validation result collision |
| GHSA-p68q-wchp-6fh7 | CVE-2026-76169 | HIGH | fastify vulnerable to authentication bypass via malformed URLs reaching encapsulated not-found handlers |
| GHSA-hwr6-493r-vm6h | CVE-2026-84469 | HIGH | fastify vulnerable to request validation bypass via skipped boolean false schemas |
| GHSA-9q9j-q6p8-xq58 | CVE-2026-84428 | HIGH | fastify vulnerable to header validation bypass via incomplete schema case normalization |
| GHSA-3m5p-2c4r-xxw2 | CVE-2026-16732 | MODERATE | fastify vulnerable to X-Forwarded-* spoofing under trustProxy hop-count |
| GHSA-w2qp-rph6-63g4 | CVE-2026-18504 | MODERATE | fastify vulnerable to schema validation bypass via root primitive coercion mismatch |
| GHSA-247c-9743-5963 | CVE-2026-33806 | HIGH | Fastify has a Body Schema Validation Bypass via Leading Space in Content-Type Header |
| GHSA-444r-cwp2-x5xf | CVE-2026-3635 | MODERATE | fastify: request.protocol and request.host Spoofable via X-Forwarded-Proto/Host from Untrusted Connections |
| GHSA-573f-x89g-hqp9 | CVE-2026-3419 | MODERATE | Fastify's Missing End Anchor in "subtypeNameReg" Allows Malformed Content-Types to Pass Validation |
| GHSA-mrq3-vjjr-p77c | CVE-2026-25224 | LOW | Fastify Vulnerable to DoS via Unbounded Memory Allocation in sendWebStream |
| GHSA-jx2c-rxcm-jvmq | CVE-2026-25223 | HIGH | Fastify's Content-Type header tab character allows body validation bypass |
| GHSA-mg2h-6x62-wpwc | CVE-2025-32442 | HIGH | Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass |
| GHSA-mq6c-fh97-4gwv | CVE-2018-3711 | HIGH | Denial of Service vulnerability with large JSON payloads in fastify |
| GHSA-3fjj-p79j-c9hh | CVE-2022-41919 | MODERATE | Fastify: Incorrect Content-Type parsing can lead to CSRF attack |
| GHSA-455w-c45v-86rg | CVE-2022-39288 | HIGH | fastify vulnerable to denial of service via malicious Content-Type |
| GHSA-xw5p-hw6r-2j98 | CVE-2020-8192 | MODERATE | Denial of service in fastify |
CVE-2026-92081 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-92081
To remediate this vulnerability, upgrade all affected Fastify dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install fastify@5.12.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls fastify
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-92081, inspect your project dependencies using npm:
npm ls fastify
Analyze the terminal output to locate any version of Fastify in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.12.5), your application is affected.
Note: The npm ls fastify command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-248: Uncaught Exception, where an exception is thrown from a function, but it is not caught. In Fastify, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-92081 Affected Fastify Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
fastify
|
npm |
< 5.12.5
|
5.12.5
|
References
Frequently Asked Questions
What is CVE-2026-92081?
Which Fastify versions are affected?
What version fixes CVE-2026-92081?
Is fastify affected?
What is the CVSS score of CVE-2026-92081?
What CWE is associated with CVE-2026-92081?
How can I check npm dependencies for CVE-2026-92081?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4mh8-r7rc-xpvc",
"modified" : "2026-09-30T23:53:44Z",
"published" : "2026-09-30T23:53:44Z",
"aliases" : [ "CVE-2026-92081" ],
"summary" : "fastify vulnerable to Denial of Service via unhandled exception on HTTP/2 trailer responses",
"details" : "### Impact\n\n`fastify` crashes with an uncaught `ERR_HTTP2_INVALID_CONNECTION_HEADERS` exception when a route that registers a response trailer via `reply.trailer()` is served over HTTP/2. Fastify unconditionally adds the `Transfer-Encoding: chunked` header when a trailer is set, which is forbidden on HTTP/2, so Node.js throws while serializing the response headers. The exception is not caught and becomes an uncaughtException, terminating the Node.js process.\n\nOne unauthenticated HTTP/2 request to any route that uses trailers is enough to crash the server, dropping all in-flight requests, and the request can be repeated to keep the process down. Applications are affected only when HTTP/2 is enabled (`http2: true`) and at least one route registers a trailer. HTTP/1.x responses are not affected.\n\n### Patches\n\nUpgrade to `fastify` `5.12.5` or later.\n\n### Workarounds\n\nAvoid registering response trailers with `reply.trailer()` on routes served over HTTP/2 until upgrading.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "fastify"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.12.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/fastify/fastify/security/advisories/GHSA-4mh8-r7rc-xpvc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-92081"
}, {
"type" : "WEB",
"url" : "https://github.com/fastify/fastify/issues/6574"
}, {
"type" : "WEB",
"url" : "https://github.com/fastify/fastify/commit/ad06a4c3fe8a944a904f38068249b18b8f552e90"
}, {
"type" : "WEB",
"url" : "https://cna.openjsf.org/security-advisories.html"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/fastify/fastify"
}, {
"type" : "WEB",
"url" : "https://github.com/fastify/fastify/releases/tag/v5.12.5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-248" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-30T23:53:44Z",
"nvd_published_at" : "2026-09-16T09:17:10Z"
}
}