Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-120216

MEDIUM 5.9EPSS 27%

fastify vulnerable to Denial of Service via uncaught exception on handlerTimeout with streaming responses

Mitigation

  • Upgrade fastify to 5.12.8 or later.

Who should check

  • Anyone running fastify >= 5.8.0, < 5.12.8

Vulnerability facts

Affected
fastify >= 5.8.0, < 5.12.8
Fixed in
fastify 5.12.8
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
5.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.41% chance of exploitation in 30 days (percentile 27, 2026-11-26)
CWE
CWE-248
Published
Modified

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

Package / productAffectedFixedSource
fastify>= 5.8.0, < 5.12.8—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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-26).

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.

Sponsors