{"id":"CVE-2026-120216","state":"PUBLISHED","title":"fastify vulnerable to Denial of Service via uncaught exception on handlerTimeout with streaming responses","description":"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.","publishedAt":"2026-11-02T11:08:00.038Z","updatedAt":"2026-11-02T16:56:16.784Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"openjs"},"assigner":"openjs","products":["fastify fastify"],"affected":[{"vendor":"fastify","product":"fastify","packageURL":"pkg:npm/fastify","defaultStatus":"unaffected","versions":[{"version":"5.8.0","status":"affected","lessThan":"5.12.8","versionType":"semver"},{"version":"5.12.8","status":"unaffected","versionType":"semver"}]}],"references":["https://github.com/fastify/fastify/security/advisories/GHSA-3qgw-9275-xf8w","https://cna.openjsf.org/security-advisories.html"],"weaknesses":["CWE-248"],"ingestedAt":"2026-11-02T17:02:06.567Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/120xxx/CVE-2026-120216.json","commit":"b73419c324cf9dd20dac612a406ff5cd0780907e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-120216","state":"PUBLISHED","datePublished":"2026-11-02T11:08:00.038Z","dateUpdated":"2026-11-02T16:56:16.784Z","assignerShortName":"openjs","assignerOrgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateReserved":"2026-10-31T16:06:34.967Z"},"containers":{"cna":{"title":"fastify vulnerable to Denial of Service via uncaught exception on handlerTimeout with streaming responses","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"fastify","product":"fastify","packageURL":"pkg:npm/fastify","defaultStatus":"unaffected","versions":[{"version":"5.8.0","status":"affected","lessThan":"5.12.8","versionType":"semver"},{"version":"5.12.8","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://github.com/fastify/fastify/security/advisories/GHSA-3qgw-9275-xf8w"},{"url":"https://cna.openjsf.org/security-advisories.html"}],"metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":5.9,"baseSeverity":"MEDIUM"},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-248","lang":"en","description":"CWE-248: Uncaught Exception","type":"CWE"}]}],"providerMetadata":{"shortName":"openjs","orgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateUpdated":"2026-11-02T11:08:00.038Z"},"credits":[{"lang":"en","type":"reporter","value":"SLRHR"},{"lang":"en","type":"remediation developer","value":"mcollina"},{"lang":"en","type":"remediation developer","value":"UlisesGascon"}],"x_generator":{"engine":"cve-kit 1.0.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-02T16:55:59.970844Z","id":"CVE-2026-120216","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-02T16:56:16.784Z"}}]}}}