Denial of service in @fastify/multipart from malformed file uploads
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-400.
Summary
@fastify/multipart versions 5.3.0 through 10.1.6 do not pass parser errors to the file stream when a body ends inside a file part without a closing boundary. A delayed file consumer then waits forever, so the request never responds while the connection stays open. An unauthenticated remote client can repeat these uploads to exhaust server resources (CWE-400), so the impact is availability only.
Written with Claude Haiku 5.5 from the sources below · 2026-11-02
Description from the CNA
@fastify/multipart is the multipart form-data and file upload plugin for the Fastify web framework. In versions 5.3.0 through 10.1.6, the plugin does not propagate a parser error to the file stream when a request body ends inside a file part with no closing boundary, even though the Content-Length is complete, the client does not abort, and no file size limit is exceeded. The plugin destroys the in-progress file stream without an error, so a handler that iterates the request parts and performs asynchronous work before consuming the file attaches to a stream that never emits an error or end event, and the request never responds while the connection stays open. An unauthenticated remote client can repeat these malformed uploads against such a route to accumulate pending connections and exhaust server resources, so the impact is availability only and exploitation depends on the application using a delayed file consumer. The issue is fixed in @fastify/multipart 10.1.7, where the parser error is propagated to the file stream so a delayed consumer settles with an error instead of hanging, and users should upgrade to 10.1.7 or later. There is no workaround other than upgrading.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| @fastify/multipart | @fastify/multipart | 5.3.0 to before 10.1.7 | 10.1.7 | Patch available | CNA |
- @fastify/multipart Vendor@fastify/multipart Affected 5.3.0 to before 10.1.7 Fixed in 10.1.7 Patch available CNA
Remediation
Upgrade @fastify/multipart to 10.1.7 or later, which fixes the issue. There is no workaround other than upgrading.
Written with Claude Haiku 5.5 from the sources below · 2026-11-02
- Fix · CNA @fastify/multipart (@fastify/multipart) Fixed in 10.1.7
Timeline
- 2026-11-02 Threatist record created from CVE-2026-117531
- 2026-11-02 CISA SSVC decision points changed
- 2026-11-02 Priority changed: MEDIUM → LOW
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences