[PR #6830] [MERGED] chore(deps): apply Undici and network security updates #7346

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6830
Author: @dependabot[bot]
Created: 9/29/2026
Status: ✅ Merged
Merged: 9/29/2026
Merged by: @SpicyMarinara

Base: staging ← Head: dependabot/npm_and_yarn/npm_and_yarn-609dc27061


📝 Commits (7)

  • 12a0acd docs: remove duplicate root guide and obsolete task brief on main (#6506)
  • 203e9bf chore(deps): bump undici in the npm_and_yarn group across 1 directory
  • 93ccbc6 Merge remote-tracking branch 'origin/staging' into codex/review-6830
  • c8fe43b docs: note Undici security patch update
  • 32b018f fix(deps): refresh vulnerable URL and IP dependency pins
  • e308275 Merge remote-tracking branch 'origin/staging' into codex/review-6830
  • c04b54e Merge remote-tracking branch 'origin/staging' into codex/review-6830

📊 Changes

4 files changed (+28 additions, -26 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 package.json (+3 -3)
📝 packages/server/package.json (+1 -1)
📝 pnpm-lock.yaml (+22 -22)

📄 Description

Linked issue

Closes #6845.

Why this change

The server's Undici dependency needs its upstream security patch. The dependency audit also fails because existing overrides pin vulnerable fast-uri and ip-address releases. Updating those pins clears the audit while keeping each dependency on its existing major version.

Upstream references: Undici 7.29.1, fast-uri port validation and authority parsing, and ip-address link-local classification and NAT64 classification.

What changed

  • Resolve Undici 7.29.1 and raise the server's minimum dependency version accordingly.
  • Refresh the existing overrides to fast-uri 3.1.7 / 4.1.4 and ip-address 10.5.1; regenerate the lockfile.
  • Add an Unreleased changelog entry.

This PR targets staging and includes its current changes. The net diff is limited to four files: the root/server manifests, lockfile, and changelog. No application code, new dependency, or application version bump is introduced.

Validation

  • 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

Local integration results for c04b54ec35fdfeb969a0984cf2474cde94f62928, including staging merge 808b5739a28d7a911b1aacf10008f5ea0ff3558c:

  • pnpm install and pnpm check passed, including localization, formatting, lint/types, and production builds.
  • pnpm audit --audit-level low passed with no known vulnerabilities; before the override updates it reported four high and two moderate findings.
  • pnpm version:check passed; the app version remains 2.4.6.
  • The updated incoming mari/review-cards.regression.ts passed (1/1).
  • pnpm smoke:production passed on desktop Chromium, mobile Chromium, and mobile WebKit (3/3).
  • docker build -t marinara-pr-6830:refresh . passed. A disposable container returned HTTP 200 for /api/health and the compiled frontend; it was then removed.

Dependency regression evidence from e308275e44ba58f01b2ae4bde5c8f0352f6d006f remains applicable: all three dependency files are identical in the latest revision. The subsequent merge brought in staging's Mari review-card cleanup and resolved only a changelog conflict; it did not alter this dependency patch.

  • pnpm regression:security passed all 19 regression-file runs on that revision.
  • node scripts/run-regressions.mjs --filter <file> passed for provider-compat.regression.ts, image-generation-timeout.regression.ts, image-result-url-security.regression.ts, swarmui-timeout.regression.ts, and swarmui-video-origin.regression.ts (5/5). These exercise provider HTTP/streaming, slow and aborted image requests, URL restrictions, and a real local SwarmUI WebSocket exchange.
  • Local CodeRabbit reviewed all four changed files at 32b018fae with zero findings. The three dependency files remain identical to that reviewed revision; the changelog retains the same release note below newer staging entries.

Hosted review is still a merge gate: CodeRabbit currently reports Review skipped for this bot-authored PR. Manual review/full-review commands and its retry control have been invoked; no hosted review has been posted yet. The green skipped status must not be mistaken for a completed review.

Manual verification notes

No live model-provider account or real SwarmUI instance was exercised; the existing regressions use local HTTP/WebSocket fixtures. Manually verify image generation against a configured SwarmUI instance when available. Browser checks above are automated, not physical-device testing.

The Undici package update does not replace Node's bundled fetch implementation. The audit result covers known dependency advisories, not a broader application security audit.

Docs and release impact

  • 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)

Only CHANGELOG.md needs a release note. No user-facing documentation, localization strings, storage format, or application version changes.

UI evidence (if applicable)

Not applicable: no UI changes.


🔄 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/6830 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 9/29/2026 **Status:** ✅ Merged **Merged:** 9/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `dependabot/npm_and_yarn/npm_and_yarn-609dc27061` --- ### 📝 Commits (7) - [`12a0acd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/12a0acd5b7823abeaf3e05ad39a3a07d957e9ffc) docs: remove duplicate root guide and obsolete task brief on main (#6506) - [`203e9bf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/203e9bfee29c01387be41de9a1cfddcc972f4014) chore(deps): bump undici in the npm_and_yarn group across 1 directory - [`93ccbc6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/93ccbc63745ce0101389cbaf7b67e4357e30bc44) Merge remote-tracking branch 'origin/staging' into codex/review-6830 - [`c8fe43b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c8fe43b1e0e1aa8979599fa3057c39e85f784242) docs: note Undici security patch update - [`32b018f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/32b018faec9552e0f41dc08332b3eb257ff11b80) fix(deps): refresh vulnerable URL and IP dependency pins - [`e308275`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e308275e44ba58f01b2ae4bde5c8f0352f6d006f) Merge remote-tracking branch 'origin/staging' into codex/review-6830 - [`c04b54e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c04b54ec35fdfeb969a0984cf2474cde94f62928) Merge remote-tracking branch 'origin/staging' into codex/review-6830 ### 📊 Changes **4 files changed** (+28 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `package.json` (+3 -3) 📝 `packages/server/package.json` (+1 -1) 📝 `pnpm-lock.yaml` (+22 -22) </details> ### 📄 Description ## Linked issue Closes #6845. ## Why this change The server's Undici dependency needs its upstream security patch. The dependency audit also fails because existing overrides pin vulnerable fast-uri and ip-address releases. Updating those pins clears the audit while keeping each dependency on its existing major version. Upstream references: [Undici 7.29.1](https://github.com/nodejs/undici/releases/tag/v7.29.1), fast-uri [port validation](https://github.com/advisories/GHSA-qw65-cvwx-89v3) and [authority parsing](https://github.com/advisories/GHSA-58mr-gqgx-xq4g), and ip-address [link-local classification](https://github.com/advisories/GHSA-rpw4-54j3-4h4q) and [NAT64 classification](https://github.com/advisories/GHSA-2vr4-cq9g-pvrc). ## What changed - Resolve Undici 7.29.1 and raise the server's minimum dependency version accordingly. - Refresh the existing overrides to fast-uri 3.1.7 / 4.1.4 and ip-address 10.5.1; regenerate the lockfile. - Add an Unreleased changelog entry. This PR targets staging and includes its current changes. The net diff is limited to four files: the root/server manifests, lockfile, and changelog. No application code, new dependency, or application version bump is introduced. ## Validation - [ ] `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` Local integration results for `c04b54ec35fdfeb969a0984cf2474cde94f62928`, including staging merge `808b5739a28d7a911b1aacf10008f5ea0ff3558c`: - `pnpm install` and `pnpm check` passed, including localization, formatting, lint/types, and production builds. - `pnpm audit --audit-level low` passed with no known vulnerabilities; before the override updates it reported four high and two moderate findings. - `pnpm version:check` passed; the app version remains 2.4.6. - The updated incoming `mari/review-cards.regression.ts` passed (1/1). - `pnpm smoke:production` passed on desktop Chromium, mobile Chromium, and mobile WebKit (3/3). - `docker build -t marinara-pr-6830:refresh .` passed. A disposable container returned HTTP 200 for `/api/health` and the compiled frontend; it was then removed. Dependency regression evidence from `e308275e44ba58f01b2ae4bde5c8f0352f6d006f` remains applicable: all three dependency files are identical in the latest revision. The subsequent merge brought in staging's Mari review-card cleanup and resolved only a changelog conflict; it did not alter this dependency patch. - `pnpm regression:security` passed all 19 regression-file runs on that revision. - `node scripts/run-regressions.mjs --filter <file>` passed for `provider-compat.regression.ts`, `image-generation-timeout.regression.ts`, `image-result-url-security.regression.ts`, `swarmui-timeout.regression.ts`, and `swarmui-video-origin.regression.ts` (5/5). These exercise provider HTTP/streaming, slow and aborted image requests, URL restrictions, and a real local SwarmUI WebSocket exchange. - Local CodeRabbit reviewed all four changed files at `32b018fae` with zero findings. The three dependency files remain identical to that reviewed revision; the changelog retains the same release note below newer staging entries. Hosted review is still a merge gate: CodeRabbit currently reports **Review skipped** for this bot-authored PR. Manual review/full-review commands and its retry control have been invoked; no hosted review has been posted yet. The green skipped status must not be mistaken for a completed review. ### Manual verification notes No live model-provider account or real SwarmUI instance was exercised; the existing regressions use local HTTP/WebSocket fixtures. Manually verify image generation against a configured SwarmUI instance when available. Browser checks above are automated, not physical-device testing. The Undici package update does not replace Node's bundled fetch implementation. The audit result covers known dependency advisories, not a broader application security audit. ## Docs and release impact - [ ] 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) Only CHANGELOG.md needs a release note. No user-facing documentation, localization strings, storage format, or application version changes. ## UI evidence (if applicable) Not applicable: no UI changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:18:52 +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#7346
No description provided.