CVE-2026-18549: @fastify/multipart vulnerable to Denial of Service via aborted upload after fileSize limit
@fastify/multipart is a multipart form-data parser for Fastify. In versions from 5.3.0 up to but not including 10.1.1, when the busboy fileSize limit truncates a file part, the plugin clears its internal current-file reference while the underlying stream is still open. If the client then aborts the connection before sending the terminating boundary, the abort cleanup finds no stream to destroy, so saveRequestFiles() never settles, the request handler hangs, and the temporary file already written to disk is never cleaned up. An unauthenticated client can repeat this to permanently leak temporary files and suspended handler executions, leading to disk and event-loop exhaustion. The issue is fixed in @fastify/multipart 10.1.1. Users should upgrade to 10.1.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
@fastify/multipartto a version that resolves this vulnerability.Fixed in 10.1.1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-18549?
The severity of CVE-2026-18549 is rated as high with a score of 7.5.
How do I fix CVE-2026-18549?
To fix CVE-2026-18549, upgrade the @fastify/multipart package to version 10.1.1 or later.
What kind of vulnerability is CVE-2026-18549?
CVE-2026-18549 is a Denial of Service vulnerability caused by improper handling of aborted file uploads.
Which versions of @fastify/multipart are affected by CVE-2026-18549?
Versions of @fastify/multipart from 5.3.0 up to, but not including, 10.1.1 are affected by CVE-2026-18549.
What impact does CVE-2026-18549 have on applications?
CVE-2026-18549 can lead to Denial of Service by consuming resources when file uploads are aborted.