Incomplete Cleanup Affecting fastify-multipart package, versions >=3.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.42% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-FASTIFYMULTIPART-22606127
  • published19 Nov 2026
  • disclosed16 Nov 2026
  • creditAjith Prabhu

Introduced: 16 Nov 2026

NewCVE-2026-110710  (opens in a new tab)
CWE-459  (opens in a new tab)

How to fix?

There is no fixed version for fastify-multipart.

Overview

fastify-multipart is a Multipart plugin for Fastify

Affected versions of this package are vulnerable to Incomplete Cleanup via the saveRequestFiles helper, which registers cleanup only in an onResponse hook that fires when the response emits finish or error. When a client completes an upload so that saveRequestFiles() resolves and then disconnects before the handler writes the reply, the response emits only a close event, the onResponse hook never runs, and the temporary files are left on disk. An unauthenticated client can repeat this cycle cheaply to exhaust disk space and crash the service.

Workaround

Avoid calling saveRequestFiles() for requests from untrusted clients. Alternatively, call request.cleanRequestFiles() from a reply.raw 'close' event handler so that saved files are removed when the client disconnects.

Notes

This package has been deprecated consider using @fastify/multipart instead

CVSS Base Scores

version 4.0
version 3.1