@fastify/multipart is vulnerable to Denial of Service
75
High Risk
The multipart parser saves uploaded parts to temporary files through saveRequestFiles() on routes that accept more than one part. When a client completes one part, begins a later part, and then disconnects, the save promise rejects while the async iterator advances past the completed part, so already-written temporary files are left on disk outside the per-file cleanup path. Unauthenticated requests can repeat this to cause linear disk growth and exhaust available disk space. The fix relocates cleanup into an outer error handler so temporary files from earlier completed parts are removed when iteration fails.
You are affected if you are using a version that falls within the vulnerable range and your application calls request.saveRequestFiles() on a route that accepts more than one part.
@fastify/multipart is vulnerable to Denial of Service in versions 3.0.0 - 10.1.0.
Upgrade the @fastify/multipart library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant