Read the docs

Temporary file leak in @fastify/multipart enables denial of service

Priority MEDIUM 48CWE-459Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-772.

Summary

@fastify/multipart from 3.0.0 before 10.1.4 is affected. Temporary files written by the saveRequestFiles helper are removed only by a response hook that runs when the response finishes or errors, so a client that finishes an upload and disconnects before the reply is written leaves the saved files on disk (CWE-459). An unauthenticated remote attacker can repeat this cheaply to exhaust disk space and deny service to applications that save uploaded files to disk.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

Description from the CNA

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

Why it matters now

Fix Fixed @fastify/multipart (@fastify/multipart): 10.1.4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
@fastify/multipart@fastify/multipart3.0.0 to before 10.1.410.1.4Patch availableCNA
  • @fastify/multipart Vendor@fastify/multipart Affected 3.0.0 to before 10.1.4 Fixed in 10.1.4 Patch available CNA

Remediation

Upgrade @fastify/multipart to version 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.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

  • Fix · CNA @fastify/multipart (@fastify/multipart) Fixed in 10.1.4

Timeline

  1. 2026-11-16 Threatist record created from CVE-2026-110710

References

  • TI-2026-92120 Type confusion in @fastify/multipart enables arbitrary file write CVSS 3.1HIGH 7.5
  • TI-2026-83783 Denial of service in @fastify/multipart from malformed file uploads CVSS 3.1MEDIUM 5.9

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences