Skip to content

fix: update fastify busboy for hardening - #1659

Merged
ferhatelmas merged 1 commit into
masterfrom
ferhat/busboy
Nov 4, 2026
Merged

ferhatelmas merged 1 commit into
masterfrom
ferhat/busboy

Conversation

@ferhatelmas

Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Certain part headers (__proto__, constructor) throw.
In certain cases, parsing is stalled.
Whitespace isn't handled correctly.
Garbage text after closing quote is kept.

What is the new behavior?

Issues are fixed in the upstream, bumping transitive dependency and adding an override to prevent accidental lock file generation.

Additional context

Fixes #1648
Legit file and field parsing don't change.

@ferhatelmas
ferhatelmas requested a review from a team as a code owner November 4, 2026 11:52
Copilot AI balanced review requested due to automatic review settings November 4, 2026 11:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the multipart parser dependency update and accompanying regression tests.

No open issues 🎉

What changed in this PR

Updates the multipart parser dependency to address the header-handling and parsing vulnerabilities reported in #1648.

Changes:

  • Upgrades @fastify/busboy from 3.1.1 to 3.2.4 in the lockfile.
  • Adds a scoped override requiring @fastify/multipart to use Busboy ^3.2.4.
  • Adds regression tests verifying that __proto__ and constructor part headers do not prevent uploads or alter file contents.
File Description
src/​storage/​uploader.test.ts Tests multipart uploads with prototype-related part header names.
package.json Adds the scoped Busboy dependency override.
package-lock.json Pins Busboy 3.2.4 and updates the multipart dependency requirement.

Review effort: Balanced

@ferhatelmas
ferhatelmas enabled auto-merge (squash) November 4, 2026 11:54

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review found no issues

No high-confidence issues detected in this change.

This review covers commit c9d2c8d, which is no longer the latest commit on this pull request; later commits are not covered by it.

@coveralls

coveralls commented Nov 4, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 41824729189

Coverage remained the same at 87.175%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 15770
Covered Lines: 14193
Line Coverage: 90.0%
Relevant Branches: 10047
Covered Branches: 8313
Branch Coverage: 82.74%
Branches in Coverage %: Yes
Coverage Strength: 1234.09 hits per line

💛 - Coveralls

@ferhatelmas
ferhatelmas merged commit 4242cfd into master Nov 4, 2026
36 checks passed
@ferhatelmas
ferhatelmas deleted the ferhat/busboy branch November 4, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump @fastify/busboy to >=3.2.1 (GHSA-xjh9-v7x6-24jw, GHSA-x8mw-p69m-v3mx)

4 participants