HackerFeeds
All CVEs

CVE-2026-124289: @fastify/multipart Path Traversal

HIGH7.5

Published 2026-11-16 · Updated 2026-11-17 · Source ce714d77-add3-4f53-aff5-83d477b104bb

Not known to be exploited · high severity — update @fastify/multipart to 10.1.9 or later in your next patch cycle.

What to do

  1. Update @fastify/multipart to version 10.1.9 or later. Versions before 10.1.9 are affected.
  2. Until it is patched, do not leave @fastify/multipart reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
  3. Block requests containing traversal sequences at the proxy or WAF, and run the service under an account that can only read the directories it needs.

Affected and fixed versions

ProductAffectedFixed in
@fastify/multipart< 10.1.910.1.9

Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.

How it can be exploited

It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact on integrity is rated high.

CVSS 3.1 metrics for CVE-2026-124289
Attack vectorNetworkIt can be exploited remotely over the network.
Attack complexityLowNo special conditions are needed; the attack is repeatable.
Privileges requiredNoneThe attacker does not need an account.
User interactionNoneNo action by a victim is needed.
ConfidentialityNoneNo effect on confidentiality.
IntegrityHighTotal loss of integrity.
AvailabilityNoneNo effect on availability.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Weakness: Path Traversal

An attacker can use sequences such as "../" to reach files outside the intended directory, reading configuration or credentials and in some cases overwriting files.

Classified as CWE-22, CWE-843 (Type Confusion).

Description

@fastify/multipart is the official Fastify plugin for handling multipart/form-data uploads. In versions 7.4.0 through 10.1.8, when the plugin is registered with the attachFieldsToBody option, the saveRequestFiles helper treats any object in the parsed request body that carries truthy file and buffer properties as an uploaded file. An unauthenticated client can forge such an object through a plain JSON request or a JSON-typed multipart field, so attacker-chosen bytes are written to the temporary directory while upload hooks and the file count and size limits are skipped, and the saved entry keeps the attacker's filename verbatim instead of being reduced to its basename. Because that filename can contain parent directory segments, applications that use it as a write destination, as the project README example does, are exposed to an arbitrary relative-path file write from a single request. The issue is fixed in @fastify/multipart 10.1.9, and users should upgrade to 10.1.9 or later. As a workaround, call saveRequestFiles only after confirming the request is multipart, and reduce each returned filename to its basename or validate it against an allowlist before using it as a destination.

Advisory text as published in the NVD record.

View on NVD