CVE-2026-124289
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.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
- CWE-843: Access of Resource Using Incompatible Type
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-11-17 |
Timeline
- 2026-11-16Published by the CNA13:09 UTC
- 2026-11-16Published in NVD14:17 UTC · 1 hour 7 minutes after the CNA
- 2026-11-17CISA SSVC decision recorded1 day after publication
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| @fastify/multipart @fastify/multipart | from 7.4.0 before 10.1.9fixed in 10.1.9 | 10.1.9 |
References
- https://cna.openjsf.org/security-advisories.html
- https://github.com/fastify/fastify-multipart/security/advisories/GHSA-gmhr-r4mc-w935
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-124289'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-124289'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-124289'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-124289'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).