CVE-2026-110710

@fastify/multipart vulnerable to Denial of Service via temporary file leak after client disconnect

Published Nov 16, 2026 CVSS 3.1 · 7.5 High EPSS n/a KEV · Not listed
Description
@fastify/multipart is the official Fastify plugin for handling multipart/form-data uploads. In versions 3.0.0 through 10.1.3, temporary files written by the saveRequestFiles helper are removed only by a response hook that runs when the response finishes or errors. When a client completes an upload and then disconnects before the handler writes the reply, for example while the handler scans, hashes or forwards the file, the response only emits a close event, the cleanup hook never runs, and the saved files are left on disk. An unauthenticated client can repeat this cheaply to exhaust disk space and deny service to applications that save uploaded files to disk. The issue is fixed in @fastify/multipart 10.1.4, and users should upgrade to 10.1.4 or later. As a workaround, avoid saving request files for untrusted clients, or clean the saved files from a close handler on the raw response so removal also happens when the client disconnects.

Analysis

AI-generated

Technical impact

The plugin @fastify/multipart writes uploaded files to temporary storage and removes them only when a normal response finish or error event occurs. If a client disconnects before the handler completes its work, the cleanup hook does not run, leaving the files on disk. An unauthenticated attacker can repeatedly perform this pattern to consume disk space, eventually exhausting the storage that the application relies on for file uploads. The vulnerability therefore results in an availability loss for the affected Fastify application.

Affected Systems

The attack affects installations of @fastify/multipart in versions 3.0.0 through 10.1.3. The issue is present in all releases less than 10.1.4 and is fixed in 10.1.4 and later.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity. No EPSS score is available, but the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is an unauthenticated HTTP request to a Fastify server using the plugin; the attacker initiates a multipart/form-data upload, disconnects before the handler generates a reply, and repeats the process until available disk quota is consumed. Because the cleanup occurs only on response finish, this pattern can be triggered by any client without special privileges and does not require authentication.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade @fastify/multipart to version 10.1.4 or later
  • If upgrading is not immediately possible, configure the multipart handler to avoid saving request files for untrusted clients or use in‑memory storage
  • Add a close event listener on the raw response to delete any temporary files so cleanup also occurs when the client disconnects

Generated by OpenCVE AI on November 16, 2026 at 14:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description @fastify/multipart is the official Fastify plugin for handling multipart/form-data uploads. In versions 3.0.0 through 10.1.3, temporary files written by the saveRequestFiles helper are removed only by a response hook that runs when the response finishes or errors. When a client completes an upload and then disconnects before the handler writes the reply, for example while the handler scans, hashes or forwards the file, the response only emits a close event, the cleanup hook never runs, and the saved files are left on disk. An unauthenticated client can repeat this cheaply to exhaust disk space and deny service to applications that save uploaded files to disk. The issue is fixed in @fastify/multipart 10.1.4, and users should upgrade to 10.1.4 or later. As a workaround, avoid saving request files for untrusted clients, or clean the saved files from a close handler on the raw response so removal also happens when the client disconnects.
Title @fastify/multipart vulnerable to Denial of Service via temporary file leak after client disconnect
Weaknesses CWE-459
CWE-772
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Subscriptions

No data.

Weaknesses
  • CWE-459

    Incomplete Cleanup

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
openjs
Published
Updated
Nov 16, 2026, 1:03 PM
Reserved
Oct 14, 2026, 2:36 PM
Status
Received
Published
Nov 16, 2026, 1:17 PM
Modified
Nov 16, 2026, 1:17 PM