@fastify/busboy vulnerable to Denial of Service via a skipped last part that fills its stream buffer
Description
Impact
Versions of @fastify/busboy from 1.0.0 through 3.2.6 are vulnerable to a Denial of Service. When the final multipart part is one busboy skips (an invalid or missing Content-Disposition, or a part beyond a configured files, fields, or parts limit) and that part holds at least one stream buffer of data (65536 bytes on Linux, 16384 on Windows), the vendored Dicer parser stores the writable callback when the skipped part's buffer fills and never releases it. The closing delimiter arrives in the same chunk, so the part stream has already ended and is never read again, and the final part's end handler emits finish without releasing the paused write. busboy emits neither finish nor error, and through @fastify/multipart 10.1.9 the upload request never settles, staying pending even after the client disconnects. A single unauthenticated upload of about 67 KB is enough. Any consumer that feeds untrusted multipart/form-data to busboy, directly or through @fastify/multipart, is affected.
Patches
Upgrade to @fastify/busboy 3.2.7 or later.
Workarounds
There is no complete application-level workaround because the stall occurs inside the parser. Set Fastify's handlerTimeout (disabled by default) so a hung handler is eventually terminated and its resources released, and prefer upgrading to a patched release.
References
- GHSA-pvmq-3jr9-v5qh (CVE-2026-128835), a separate Denial of Service with the same symptom but a different root cause.