Technical impact
The vulnerability is a type‑confusion bug in the saveRequestFiles helper of the @fastify/multipart plugin. It allows an unauthenticated actor to forge a JSON object that the helper interprets as a file. The exploit causes arbitrary bytes to be written to a temporary folder without subjecting the input to upload limits or sanitization of the filename. Because the attacker can set any filename, including relative paths, the write can target any file under the working directory of the application.
Affected Systems
Affected: @fastify/multipart versions 7.4.0 through 10.1.8 , across all Node.js environments where the plugin is used with the attachFieldsToBody option.
Risk and Exploitability
The CVSS score of 7.5 marks this as a moderate‑high severity vulnerability. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, so the exploitation probability is uncertain. The likely attack vector is an unauthenticated client sending a specially crafted JSON request that the plugin accepts as a multipart field, triggering the improper file creation and path traversal. Because the filename is preserved verbatim, any path segments supplied by the attacker are written directly, enabling arbitrary relative‑path file writes that affect the host file system.