{"id":"CVE-2026-92081","aliases":["CVE-2026-92081","GHSA-4mh8-r7rc-xpvc"],"related":[],"kind":"vulnerability","state":"published","title":"fastify vulnerable to Denial of Service via unhandled exception on HTTP/2 trailer responses","summary":"fastify is a fast and low-overhead web framework for Node.js. In versions before 5.12.5, when a route registers a response trailer via reply.trailer() and is served over HTTP/2, fastify unconditionally sets the Transfer-Encoding: chunked header, which is forbidden on HTTP/2, so Node.js throws while serializing the response headers. The exception is not caught and becomes an uncaughtException, so a single unauthenticated HTTP/2 request to any route that uses trailers crashes the server process and drops all in-flight requests, and it can be repeated on every restart. The issue is fixed in fastify 5.12.5, and users should upgrade to 5.12.5 or later. As a workaround, avoid registering response trailers with reply.trailer() on routes served over HTTP/2 until upgrading.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"fastify is a fast and low-overhead web framework for Node.js. In versions before 5.12.5, when a route registers a response trailer via reply.trailer() and is served over HTTP/2, fastify unconditionally sets the Transfer-Encoding: chunked header, which is forbidden on HTTP/2, so Node.js throws while serializing the response headers. The exception is not caught and becomes an uncaughtException, so a single unauthenticated HTTP/2 request to any route that uses trailers crashes the server process and drops all in-flight requests, and it can be repeated on every restart. The issue is fixed in fastify 5.12.5, and users should upgrade to 5.12.5 or later. As a workaround, avoid registering response trailers with reply.trailer() on routes served over HTTP/2 until upgrading.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-09-16T08:52:49.757Z","modified":"2026-10-01T00:00:05.778Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"5.12.5","status":"affected"},{"type":"semver","version":"5.12.5","status":"unaffected"}],"vendor":"fastify","product":"fastify","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.12.5"}],"ecosystem":"npm","package":"fastify","purl":"pkg:npm/fastify","source":"ghsa"}],"references":[{"url":"https://github.com/fastify/fastify/security/advisories/GHSA-4mh8-r7rc-xpvc","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-92081","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fastify/issues/6574","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fastify/commit/ad06a4c3fe8a944a904f38068249b18b8f552e90","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fastify","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fastify/releases/tag/v5.12.5","tags":["web"],"sources":["ghsa"]}],"credits":["mcollina","UlisesGascon","zerovulnlabs"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-16T14:00:06.966Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-92081","url":"https://www.cve.org/CVERecord?id=CVE-2026-92081","licence":"CVE Terms of Use","modified":"2026-09-16T14:00:59.305Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4mh8-r7rc-xpvc","url":"https://github.com/advisories/GHSA-4mh8-r7rc-xpvc","licence":"CC-BY-4.0","modified":"2026-10-01T00:00:05.778Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-92081","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-92081","licence":"Public domain","modified":"2026-09-16T19:40:00.317Z"}],"updatedAt":"2026-11-25T22:59:38.927Z","epss":{"score":0.00423,"percentile":0.38527,"date":"2026-12-01T12:00:22.000Z"}}