CVE-2026-18549 PUBLISHED

@fastify/multipart vulnerable to Denial of Service via aborted upload after fileSize limit

Assigner: openjs
Reserved: 31.07.2026 Published: 15.08.2026 Updated: 15.08.2026

@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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS Score: 7.5

Product Status

Vendor @fastify/multipart
Product @fastify/multipart
Versions Default: unaffected
  • affected from 5.3.0 to 10.1.1 (excl.)
  • Version 10.1.1 is unaffected

Credits

  • iaohkut-from-NightWolf-Team reporter
  • UlisesGascon remediation developer
  • mcollina remediation reviewer

References

Problem Types

  • CWE-400: Uncontrolled Resource Consumption CWE
  • CWE-664: Improper Control of a Resource Through its Lifetime CWE