Off-by-one error in @fastify/busboy misparses multipart file parts
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
@fastify/busboy, a streaming multipart form data parser used by Fastify, is affected from 3.2.1 before 3.2.6. An off-by-one error (CWE-193) drops the final header line when the header terminator is split exactly at the header size limit, so a binary file part is emitted as a text field. A remote client who controls the body and header padding can influence how the bytes are split across reads, so an application that validates only file events may process the payload without that validation.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
Description from the CNA
@fastify/busboy is a streaming parser for multipart form data used by Fastify. In versions 3.2.1 through 3.2.5, the parser can interpret the same multipart bytes differently depending on how they are split across socket reads: when the sequence that terminates a part's header block arrives split exactly at the configured header size limit, an off by one error drops the final header line, so a part declared as a binary file attachment is emitted as an ordinary text field instead of a file. A remote client controls both the multipart body and the header padding needed to reach the boundary and can influence segmentation, so an application that applies upload validation such as malware scanning or extension checks only to file events while trusting plain field values may process the payload through the wrong path. The parser level type confusion is fully reproducible, while the downstream validation bypass depends on the application. The issue is fixed in @fastify/busboy 3.2.6, which tracks how many terminator bytes were actually buffered when the limit is reached so a split terminator no longer corrupts the final header, and users should upgrade to 3.2.6 or later. As a workaround, apply the same validation to field values as to file uploads rather than treating file events as a trust boundary.
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
Remediation
Upgrade @fastify/busboy to version 3.2.6, which tracks how many terminator bytes were buffered so a split terminator no longer corrupts the final header. As a workaround, apply the same validation to field values as to file uploads.
Written with Claude Haiku 5.5 from the sources below · 2026-11-16
- Fix · CNA @fastify/busboy (@fastify/busboy) Fixed in 3.2.6
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
@fastify/busboy 3.2.6
4 records Highest priority Priority MEDIUM 1 MEDIUM, 3 LOW
Other records, highest priority first
- TI-2026-92122 Denial of service in @fastify/busboy via unterminated multipart headersPriority MEDIUM 48
- TI-2026-92123 Denial of service in @fastify/busboy via oversized URL-encoded fieldsPriority LOW 39
- TI-2026-92121 Crash in @fastify/busboy multipart parser on truncated requestPriority LOW 36
Timeline
- 2026-11-16 Threatist record created from CVE-2026-128846
- 2026-11-16 CISA SSVC decision points changed
References
More fastify vulnerabilities
- TI-2026-26180 @fastify/express vulnerable to middleware authentication bypass via URL normalization… CVSS 4.0CRITICAL 9.1
- TI-2026-26179 @fastify/express vulnerable to middleware path doubling causing authentication bypass in child plugin scopes CVSS 3.1CRITICAL 9.1
- TI-2026-26177 @fastify/reply-from vulnerable to connection header abuse enabling stripping of proxy-added headers CVSS 4.0CRITICAL 9.0
- TI-2026-05498 @fastify/middie vulnerable to middleware authentication bypass in child plugin scopes CVSS 3.1CRITICAL 9.1
- TI-2023-15307 Cross-site request forgery in npm @fastify/oauth2 CVSS 3.1HIGH 8.8
- TI-2022-18664 Denial of service in Fastify via Content-Type header CVSS 3.1HIGH 7.5
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences