CVE-2026-120216
Published:November 02, 2026
Updated:November 03, 2026
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 Packages
https://github.com/fastify/fastify.git (GITHUB):
Affected version(s) >=v5.8.0 <v5.12.8Fix Suggestion:
Update to version v5.12.8https://github.com/fastify/fastify.git (GITHUB):
Affected version(s) >=v6.0.0-alpha.0 <v6.0.0-alpha.6Fix Suggestion:
Update to version v6.0.0-alpha.6fastify (NPM):
Affected version(s) >=6.0.0-alpha.0 <6.0.0-alpha.6Fix Suggestion:
Update to version 6.0.0-alpha.6fastify (NPM):
Affected version(s) >=5.8.0 <5.12.8Fix Suggestion:
Update to version 5.12.8Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Uncaught Exception
EPSS
Base Score:
0.33