Description
@fastify/multipart is the multipart form-data and file upload plugin for the Fastify web framework. In versions 5.3.0 through 10.1.6, the plugin does not propagate a parser error to the file stream when a request body ends inside a file part with no closing boundary, even though the Content-Length is complete, the client does not abort, and no file size limit is exceeded. The plugin destroys the in-progress file stream without an error, so a handler that iterates the request parts and performs asynchronous work before consuming the file attaches to a stream that never emits an error or end event, and the request never responds while the connection stays open. An unauthenticated remote client can repeat these malformed uploads against such a route to accumulate pending connections and exhaust server resources, so the impact is availability only and exploitation depends on the application using a delayed file consumer. The issue is fixed in @fastify/multipart 10.1.7, where the parser error is propagated to the file stream so a delayed consumer settles with an error instead of hanging, and users should upgrade to 10.1.7 or later. There is no workaround other than upgrading.
Published: 2026-11-02
Score: 5.9 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Patch Immediately
AI Analysis

Impact

@fastify/multipart, the multipart form‑data and file upload plugin for the Fastify web framework, fails to propagate a parser error to the file stream when a request body ends inside a file part with no closing boundary. In affected versions 5.3.0 through 10.1.6, the plugin silently destroys the in‑progress file stream without emitting an error or end event. This causes request handlers that iterate the request parts and perform asynchronous work before consuming the file to hang indefinitely, resulting in requests that never respond and keep the connection open. The impact is purely availability, as the attacker can repeatedly send malformed uploads to accumulate pending connections and exhaust server resources.

Affected Systems

The vulnerability affects the @fastify/multipart package in Fastify applications. Versions 5.3.0 through 10.1.6 are vulnerable; version 10.1.7 and later contain the fix that propagates the parser error, terminating delayed consumers with an error instead of hanging. All Fastify applications that use this plugin are at risk if their upload handling logic includes delayed file consumers or if the package is not updated.

Risk and Exploitability

The CVSS score is 5.9, indicating a moderate severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires an unauthenticated remote client to send malformed uploads against a route that uses delayed file consumption. If such application logic is present, an attacker can accumulate pending connections and exhaust server resources. The path to exploitation is straightforward: craft a multipart request with an incomplete boundary while the Content‑Length is satisfied, then repeat the request to drain available server connections. The effect is a denial of service that persists until the server is restarted or the attack is mitigated.

Generated by OpenCVE AI on November 2, 2026 at 11:21 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the @fastify/multipart dependency to version 10.1.7 or later to receive the parser‑error propagation fix.
  • Audit application code to eliminate or refactor delayed file consumer logic; ensure file streams are fully consumed or promptly errored upon parsing failures.
  • Configure the web server or an application firewall to limit concurrent upload connections and set reasonable timeouts so that hanging requests cannot exhaust server resources.

Generated by OpenCVE AI on November 2, 2026 at 11:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 02 Nov 2026 10:45:00 +0000

Type Values Removed Values Added
Description @fastify/multipart is the multipart form-data and file upload plugin for the Fastify web framework. In versions 5.3.0 through 10.1.6, the plugin does not propagate a parser error to the file stream when a request body ends inside a file part with no closing boundary, even though the Content-Length is complete, the client does not abort, and no file size limit is exceeded. The plugin destroys the in-progress file stream without an error, so a handler that iterates the request parts and performs asynchronous work before consuming the file attaches to a stream that never emits an error or end event, and the request never responds while the connection stays open. An unauthenticated remote client can repeat these malformed uploads against such a route to accumulate pending connections and exhaust server resources, so the impact is availability only and exploitation depends on the application using a delayed file consumer. The issue is fixed in @fastify/multipart 10.1.7, where the parser error is propagated to the file stream so a delayed consumer settles with an error instead of hanging, and users should upgrade to 10.1.7 or later. There is no workaround other than upgrading.
Title @fastify/multipart vulnerable to Denial of Service via a malformed upload hanging delayed file consumers
Weaknesses CWE-400
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: openjs

Published:

Updated: 2026-11-02T10:32:38.867Z

Reserved: 2026-10-27T10:32:52.571Z

Link: CVE-2026-117531

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-02T11:17:30.853

Modified: 2026-11-02T11:17:30.853

Link: CVE-2026-117531

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-02T11:30:14Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption