# CVE-2026-120216: fastify vulnerable to Denial of Service via uncaught exception on handlerTimeout with streaming responses

- Severity: Medium 5.9 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-11-02T11:08:00.038Z
- Modified: 2026-11-02T17:17:39.870Z
- Weaknesses: CWE-248
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: openjs

## 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.

(As written by CVE List.)

## Affected

- fastify fastify: from 5.8.0 before 5.12.8 (not affected: 5.12.8)

## References

- <https://github.com/fastify/fastify/security/advisories/GHSA-3qgw-9275-xf8w>
- <https://cna.openjsf.org/security-advisories.html>

## Sources

- CVE List: [CVE-2026-120216](https://www.cve.org/CVERecord?id=CVE-2026-120216), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2026-120216](https://nvd.nist.gov/vuln/detail/CVE-2026-120216), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-120216 · Whole record: https://cve.day/CVE-2026-120216.json · Rebuilt by cve.day 2026-11-25T22:59:48.171Z
