PT-2026-148236
CVE-2026-124289
·
Published
2026-11-16
·
Updated
2026-11-16
Description by
CVSS 3.1
7.5
HighMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions
@fastify/multipart versions 7.4.0 through 10.1.8
Description
When the plugin is registered with the
attachFieldsToBody option, the saveRequestFiles() function treats any object in the parsed request body containing truthy file and buffer properties as an uploaded file. An unauthenticated client can forge this object using a plain JSON request or a JSON-typed multipart field. This allows attacker-chosen bytes to be written to the temporary directory while bypassing upload hooks and limits on file count and size. Additionally, the saved entry retains the attacker's filename verbatim rather than reducing it to its basename. Since the filename can include parent directory segments, applications using it as a write destination are susceptible to an arbitrary relative-path file write.Recommendations
Update @fastify/multipart to version 10.1.9 or later.
As a temporary workaround, call
saveRequestFiles() only after confirming the request is multipart.
Reduce each returned filename to its basename or validate it against an allowlist before using it as a destination.Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾