File Upload Vulnerability in Fastify Multipart Plugin by Fastify
CVE-2026-124289
7.5HIGH
What is CVE-2026-124289?
The @fastify/multipart plugin for handling multipart/form-data uploads contains a vulnerability that allows unauthenticated clients to exploit the saveRequestFiles helper. Specifically, when the attachFieldsToBody option is enabled, the plugin treats certain objects in the request body as uploaded files, allowing attackers to bypass file count and size limits. This can lead to arbitrary file writes due to unvalidated filenames retained in uploads, potentially compromising the application’s security. Users are urged to upgrade to version 10.1.9 or newer and ensure proper validation of filenames to mitigate this risk.
Affected Version(s)
@fastify/multipart 7.4.0 < 10.1.9
@fastify/multipart 10.1.9
References
CVSS V3.1
Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
High
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged
Timeline
Vulnerability published
Vulnerability Reserved
Credit
mcollina
UlisesGascon
developingchet
jackfromeast
superboy-zjc
