CVE-2026-135275: @fastify/busboy vulnerable to Denial of Service via a skipped last part that fills its stream buffer
@fastify/busboy is a streaming parser for HTML form data, including multipart/form-data uploads, used by Fastify through @fastify/multipart. In versions from 1.0.0 before 3.2.7, when the final part of a multipart body is one the parser skips, such as a part with an invalid or missing Content-Disposition header or a part beyond a configured files, fields, or parts limit, and that part holds at least one stream buffer of data, the parser pauses the incoming write and never releases it because the closing delimiter has already been processed. The parser then emits neither a finish nor an error event, so the upload request never completes and stays pending even after the client disconnects. A single unauthenticated upload of about 67 KB is enough to leave a request hanging, and repeated requests can exhaust server resources, affecting any application that passes untrusted multipart/form-data to the parser directly or through @fastify/multipart. The issue is fixed in @fastify/busboy 3.2.7, and users should upgrade to 3.2.7 or later. There is no complete workaround, but setting Fastify's handlerTimeout option limits how long a stalled handler holds its resources.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
@fastify/busboyto a version that resolves this vulnerability.Fixed in 3.2.7 - Configuration
Set Fastify's handlerTimeout option to limit how long a stalled handler holds resources.
Fastify handlerTimeout
Event History
Frequently Asked Questions
Which applications are exposed to this denial-of-service condition?
Applications using @fastify/busboy versions 1.0.0 through before 3.2.7 are affected if they pass untrusted multipart/form-data to the parser, either directly or through @fastify/multipart. Requests are susceptible when the final multipart part is skipped, such as because it has an invalid or missing Content-Disposition header or exceeds configured files, fields, or parts limits.
What does an attacker need to do to trigger the issue?
An unauthenticated attacker can send a multipart upload whose final part is skipped and contains at least one stream buffer of data. About 67 KB in a single upload is sufficient to leave a request pending; repeated requests can consume server resources.
How can I reduce impact if I cannot upgrade immediately?
There is no complete workaround. Setting Fastify's handlerTimeout option limits the time that a stalled handler can retain resources.
How would the issue appear during operation?
Affected upload requests remain pending because the parser emits neither a finish event nor an error event. They can stay pending even after the client disconnects.