GHSA-xjh9-v7x6-24jw: High severity npm/@fastify/busboy vulnerability

Published Oct 2, 2026
·
Updated

Impact

Versions of @fastify/busboy from 3.1.0 and prior to 3.2.1 are vulnerable to a Denial of Service. The vendored streaming multipart search stores its default skip distance in a Uint8Array(256). A multipart boundary of exactly 252 bytes makes the search needle 256 bytes, and the table entry wraps to zero, so a crafted request keeps the search in a CPU-bound loop and stalls the Node.js event loop. An unauthenticated client can trigger this with a single small request. Applications that use @fastify/busboy to parse multipart/form-data, directly or through @fastify/multipart, are affected.

Patches

Fixed in version 3.2.1.

Workarounds

Validate the multipart boundary before parsing and reject any boundary longer than the RFC 2046 limit of 70 characters (for example at a reverse proxy or in an onRequest hook). Upgrading to 3.2.1 removes the issue.

Affected Software

1 affected componentFixes available
npm/@fastify/busboy>=3.1.0<3.2.1
3.2.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@fastify/busboy to a version that resolves this vulnerability.

    Fixed in 3.2.1
  2. Upgrade

    Upgrade @fastify/busboy to a version that resolves this vulnerability.

    Fixed in 3.2.1
  3. Compensating control

    Validate the multipart boundary before parsing and reject any boundary longer than 70 characters, for example at a reverse proxy or in an onRequest hook.

Event History

Oct 2, 2026
Advisory Published
via GitHub·11:16 PM
Data Sourced
via GitHub·11:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which applications are exposed to this denial-of-service issue?

Applications are affected if they use @fastify/busboy to parse multipart/form-data, either directly or through @fastify/multipart. A remotely reachable multipart upload endpoint using an affected version is exposed.

2

What does an attacker need to exploit it?

No authentication or user interaction is required. An attacker can send a single small multipart request with a boundary crafted to be exactly 252 bytes, causing CPU-bound processing that stalls the Node.js event loop.

3

Which versions are affected and what version fixes the issue?

Versions from 3.1.0 up to, but not including, 3.2.1 are vulnerable. The issue is fixed in @fastify/busboy 3.2.1.

4

What can be done if upgrading is not immediately possible?

Validate multipart boundaries before they reach the parser and reject boundaries longer than the RFC 2046 limit of 70 characters. This can be enforced at a reverse proxy or in an onRequest hook.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203