CVE-2026-124289
Last modified
CVE-2026-124289 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. @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.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| @fastify/multipart | @fastify/multipart | >= 7.4.0, < 10.1.9 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-124289?
How severe is CVE-2026-124289?
How do I fix CVE-2026-124289?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-124271Missing Authorization vulnerability in DEV Institute Restric…5.3
- CVE-2026-124272Improper Neutralization of Input During Web Page Generation …7.1
- CVE-2026-124274Missing Authorization vulnerability in myCred myCred mycred …5.3
- CVE-2026-124278Authorization Bypass Through User-Controlled Key vulnerabili…7.6
- CVE-2026-124279Allocation of Resources Without Limits or Throttling vulnera…8.2
- CVE-2026-12428The Blocks for ACF Fields plugin for WordPress is vulnerable…6.5
- CVE-2026-1243IBM Content Navigator 3.0.15, 3.1.0, and 3.2.0 is vulnerable…5.4
- CVE-2026-12430The Blocksy Companion plugin for WordPress is vulnerable to …4.4
- CVE-2026-124307Fraunhofer HHI VVdeC before 3.2.1 contains a heap use-after-…5.8
- CVE-2026-124308Fraunhofer HHI VVdeC before 3.2.1 contains a heap use-after-…5.8
- CVE-2026-124309Fraunhofer HHI VVdeC before 3.2.1 contains a heap out-of-bou…6.1
- CVE-2026-124310Fraunhofer HHI VVdeC before 3.2.1 contains an out-of-bounds …6.1
Are you affected by CVE-2026-124289?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
