{"id":"CVE-2026-120216","aliases":["CVE-2026-120216"],"related":[],"kind":"vulnerability","state":"published","title":"fastify vulnerable to Denial of Service via uncaught exception on handlerTimeout with streaming responses","summary":"fastify is a web framework for Node.js. In versions 5.8.0 through 5.12.7, when the server is configured with a nonzero handlerTimeout and a route returns a streaming response, a request whose stream has already sent its headers but stays open past the timeout crashes the server. When the timeout fires, Fastify tries to send a new error response on a response that has already started, raising an uncaught ERR_HTTP_HEADERS_SENT that terminates the Node.js process and interrupts any other in-flight requests. An unauthenticated remote client can trigger this with a single request to an affected streaming endpoint, so the impact is availability only, and exploitation requires the non-default handlerTimeout to be set. The default handlerTimeout of 0 is not affected. The issue is fixed in fastify 5.12.8, and users should upgrade to 5.12.8 or later. As a workaround, set handlerTimeout to 0, which disables the affected timeout path.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"fastify is a web framework for Node.js. In versions 5.8.0 through 5.12.7, when the server is configured with a nonzero handlerTimeout and a route returns a streaming response, a request whose stream has already sent its headers but stays open past the timeout crashes the server. When the timeout fires, Fastify tries to send a new error response on a response that has already started, raising an uncaught ERR_HTTP_HEADERS_SENT that terminates the Node.js process and interrupts any other in-flight requests. An unauthenticated remote client can trigger this with a single request to an affected streaming endpoint, so the impact is availability only, and exploitation requires the non-default handlerTimeout to be set. The default handlerTimeout of 0 is not affected. The issue is fixed in fastify 5.12.8, and users should upgrade to 5.12.8 or later. As a workaround, set handlerTimeout to 0, which disables the affected timeout path.","source":"cvelist"}],"published":"2026-11-02T11:08:00.038Z","modified":"2026-11-02T17:17:39.870Z","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"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"type":"semver","introduced":"5.8.0","fixed":"5.12.8","status":"affected"},{"type":"semver","version":"5.12.8","status":"unaffected"}],"vendor":"fastify","product":"fastify","source":"cvelist"}],"references":[{"url":"https://github.com/fastify/fastify/security/advisories/GHSA-3qgw-9275-xf8w","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[],"sources":["cvelist","nvd"]}],"credits":["SLRHR","mcollina","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-02T16:55:59.970Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-120216","url":"https://www.cve.org/CVERecord?id=CVE-2026-120216","licence":"CVE Terms of Use","modified":"2026-11-02T16:56:16.784Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-120216","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120216","licence":"Public domain","modified":"2026-11-02T17:17:39.870Z"}],"updatedAt":"2026-11-25T22:59:48.171Z","epss":{"score":0.00329,"percentile":0.28055,"date":"2026-12-01T12:00:22.000Z"}}