[PR #6996] [MERGED] fix(deps): patch multipart upload denial-of-service vulnerabilities #7423

Closed
opened 2026-10-23 04:19:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6996
Author: @SpicyMarinara
Created: 10/3/2026
Status: ✅ Merged
Merged: 10/3/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/dependabot-multipart-6995


📝 Commits (2)

  • 13a50fc docs: track multipart parser security update
  • 9a8e1c1 fix(deps): patch multipart parser denial-of-service advisories

📊 Changes

3 files changed (+8 additions, -4 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 package.json (+1 -0)
📝 pnpm-lock.yaml (+5 -4)

📄 Description

Linked issue

Closes #6995

Why this change

Staging still locks @fastify/busboy 3.2.0 through @fastify/multipart. Two newly published advisories describe malformed multipart requests that can stall or crash the parser: GHSA-xjh9-v7x6-24jw and GHSA-x8mw-p69m-v3mx. Both are fixed upstream in 3.2.1.

The eight open Undici Dependabot alerts were already fixed on staging by #6830; they have been closed with notes that main promotion remains pending.

What changed

  • Add a targeted @fastify/busboy@<3.2.1 override using the existing dependency-security pattern, regenerate the lockfile to resolve 3.2.1, and record the fix in the changelog.
  • No application logic or public API changes.

Validation

Tested revision: 9a8e1c1f5ce4ee20bf3efa1bd4df2454875509d4 (same file content as the validated worktree).

  • pnpm install --frozen-lockfile: passed.
  • pnpm check: passed (formatting, localization, lint/type checks and production builds).
  • pnpm version:check: passed, app version remains 2.4.6.
  • pnpm audit --json: before update, 2 high vulnerabilities; after update, 0 vulnerabilities, no muted advisories.
  • Temporary isolated parser proof: reproduced both advisories on 3.2.0. All six cases pass on 3.2.1: ordinary header control; __proto__ and constructor headers through both direct and piped parsing; fragmented 252-byte boundary. The vulnerable boundary case was contained in a child process with a two-second timeout.
  • node scripts/run-regressions.mjs --filter notification-sound: 1/1 passed.
  • node scripts/run-regressions.mjs --filter profile-import-data-security: 1/1 passed.
  • node scripts/run-regressions.mjs --filter lorebook-images: 1/1 passed.
  • docker build -t marinara-busboy-6995:local .: passed on local Linux/arm64. An isolated disposable container returned healthy /api/health and HTTP 200 frontend HTML; its installed multipart parser was verified as 3.2.1. Container stopped and removed afterward.
  • Local coderabbit review --base origin/staging --agent: completed, all three changed files reviewed, 0 findings.

Claim boundary: the shipped multipart dependency includes the upstream fixes and valid upload behavior remains covered. Parser negative controls and application upload acceptance/rejection, asset storage, and profile ZIP authorization were tested. No storage or legacy-format changes. Manual browser upload was not performed; the human checklist below remains unchecked.

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify a normal multipart file import/upload in the browser. Automated parser and upload checks passed as recorded above.

Docs and release impact

Changelog only; no public API, storage format, UI copy, installation instructions or app version changes.

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Not applicable: dependency patch with no UI changes.

Summary by CodeRabbit

  • Bug Fixes
    • Improved protection for multipart uploads against denial-of-service issues triggered by malformed upload headers or oversized boundaries.
    • Updated the upload parser to a version that includes these protections.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6996 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/3/2026 **Status:** ✅ Merged **Merged:** 10/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/dependabot-multipart-6995` --- ### 📝 Commits (2) - [`13a50fc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/13a50fc00fddf062a799d899a6852c7011855558) docs: track multipart parser security update - [`9a8e1c1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9a8e1c1f5ce4ee20bf3efa1bd4df2454875509d4) fix(deps): patch multipart parser denial-of-service advisories ### 📊 Changes **3 files changed** (+8 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `package.json` (+1 -0) 📝 `pnpm-lock.yaml` (+5 -4) </details> ### 📄 Description ## Linked issue Closes #6995 ## Why this change Staging still locks `@fastify/busboy` 3.2.0 through `@fastify/multipart`. Two newly published advisories describe malformed multipart requests that can stall or crash the parser: GHSA-xjh9-v7x6-24jw and GHSA-x8mw-p69m-v3mx. Both are fixed upstream in 3.2.1. The eight open Undici Dependabot alerts were already fixed on staging by #6830; they have been closed with notes that main promotion remains pending. ## What changed - Add a targeted `@fastify/busboy@<3.2.1` override using the existing dependency-security pattern, regenerate the lockfile to resolve 3.2.1, and record the fix in the changelog. - No application logic or public API changes. ## Validation Tested revision: `9a8e1c1f5ce4ee20bf3efa1bd4df2454875509d4` (same file content as the validated worktree). - `pnpm install --frozen-lockfile`: passed. - `pnpm check`: passed (formatting, localization, lint/type checks and production builds). - `pnpm version:check`: passed, app version remains 2.4.6. - `pnpm audit --json`: before update, 2 high vulnerabilities; after update, **0 vulnerabilities**, no muted advisories. - Temporary isolated parser proof: reproduced both advisories on 3.2.0. All six cases pass on 3.2.1: ordinary header control; `__proto__` and `constructor` headers through both direct and piped parsing; fragmented 252-byte boundary. The vulnerable boundary case was contained in a child process with a two-second timeout. - `node scripts/run-regressions.mjs --filter notification-sound`: 1/1 passed. - `node scripts/run-regressions.mjs --filter profile-import-data-security`: 1/1 passed. - `node scripts/run-regressions.mjs --filter lorebook-images`: 1/1 passed. - `docker build -t marinara-busboy-6995:local .`: passed on local Linux/arm64. An isolated disposable container returned healthy `/api/health` and HTTP 200 frontend HTML; its installed multipart parser was verified as 3.2.1. Container stopped and removed afterward. - Local `coderabbit review --base origin/staging --agent`: completed, all three changed files reviewed, **0 findings**. Claim boundary: the shipped multipart dependency includes the upstream fixes and valid upload behavior remains covered. Parser negative controls and application upload acceptance/rejection, asset storage, and profile ZIP authorization were tested. No storage or legacy-format changes. Manual browser upload was not performed; the human checklist below remains unchecked. - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify a normal multipart file import/upload in the browser. Automated parser and upload checks passed as recorded above. ## Docs and release impact Changelog only; no public API, storage format, UI copy, installation instructions or app version changes. - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Not applicable: dependency patch with no UI changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved protection for multipart uploads against denial-of-service issues triggered by malformed upload headers or oversized boundaries. * Updated the upload parser to a version that includes these protections. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:19:37 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7423
No description provided.