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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.41% (percentile 27, 2026-11-28)
- **CWE:** CWE-248
- **Published:** 2026-11-02T11:08:00.038Z
- **Modified:** 2026-11-02T17:17:39.870Z

## Who should check

- Anyone running fastify \>= 5.8.0, \< 5.12.8

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

## Affected and fixed versions

- fastify: \>= 5.8.0, \< 5.12.8 (cvelist)

## Mitigation

- Upgrade fastify to 5.12.8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-120216. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-120216.md
Affected: fastify >= 5.8.0, < 5.12.8
Fixed in: fastify 5.12.8

Steps:
1. Search this machine and project for fastify: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-120216 being exploited?

There is no confirmed exploitation: CVE-2026-120216 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.41% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-120216?

Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-120216?

fastify \>= 5.8.0, \< 5.12.8.

### Is there a fix for CVE-2026-120216?

Yes. Fixed in fastify 5.12.8. Upgrade fastify to 5.12.8 or later.

### How do I check if I'm affected by CVE-2026-120216?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-120216>

HTML: <https://flawdb.com/CVE-2026-120216> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-120216>
