[PR #8451] [MERGED] chore: validate dependency updates and backport deepmerge security fix #8610

Closed
opened 2026-11-07 16:45:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: chore/dependabot-security-sweep-20261029


📝 Commits (2)

  • 95a54a8 chore: start validated dependency maintenance (#8450)
  • 650f235 chore: validate dependency updates and backport deepmerge security fix (#8450)

📊 Changes

11 files changed (+337 additions, -71 deletions)

View changed files

📝 .github/workflows/build-container-lite.yml (+2 -2)
📝 .github/workflows/build-container.yml (+2 -2)
📝 android/build.gradle (+1 -1)
📝 packages/client/package.json (+1 -1)
📝 packages/server/package.json (+3 -3)
➕ patches/deepmerge-security-backport.md (+11 -0)
➕ patches/deepmerge@4.3.1.patch (+93 -0)
📝 pnpm-lock.yaml (+102 -54)
📝 pnpm-workspace.yaml (+8 -5)
➕ scripts/regressions/deepmerge-security-backport.regression.mjs (+111 -0)
📝 scripts/regressions/zod-security-backport.regression.mjs (+3 -3)

📄 Description

Linked issue

Closes #8450

Supersedes #8431, #8432, #8433, #8434, #8435 and #8436 after delivery. The incompatible standalone ONNX update #8437 was closed with the actual runtime-contract failure.

Why this change

The maintainer requested all feasible Dependabot updates and vulnerability reports to be addressed. These updates share a lockfile, and the MCP version change also needs its workspace override corrected to take effect. A fresh audit found a real deepmerge prototype-poisoning issue with no released fixed version; the supported maintenance path is a tested source backport rather than leaving the dependency vulnerable or hiding an unpatched advisory.

What changed

  • Update MCP SDK to 1.32.2, Pi coding agent to 1.4.0, i18next to 26.5.11, and dotenv to 18.0.9. Correct the MCP override and regenerate the lockfile so the installed SDK actually becomes 1.32.2.
  • Update Android Gradle Plugin to 9.5.0, retaining the compatible Gradle 9.8.2/JDK 17 configuration and all application version/signing settings.
  • Pin docker/login-action 4.7.0 to its immutable upstream SHA in all four full/lite container login steps.
  • Apply the unchanged pnpm-maintained deepmerge 4.3.1 patch to both copy loops in its source, CJS and UMD entrypoints. Malicious __proto__ keys are rejected while ordinary merge, cloning, symbols and constructor/prototype data retain their behavior.
  • Add installed-package security proof covering 20 poisoning/safe controls, all consumer resolutions and exact patch/lock hashes. Permit only its specific advisory alongside the separately verified Zod compatibility backport; both regressions guard the exact two exceptions.
  • Preserve the existing ONNX backend pair and all other security overrides/patches. No root release version, storage format or CHANGELOG change.

Validation

Completed locally on 650f2359b320cbe8ab26bf597ae5d3900bd829b4:

  • Normal lockfile regeneration, frozen installation and frozen idempotence replay pass. Independent graph review confirms only the four intended npm bumps and their required transitives changed; unchanged package integrities, ONNX records, and all existing patch bytes/hashes remain intact.
  • pnpm check and pnpm version:check pass. Existing warnings remain.
  • REGRESSION_CONCURRENCY=4 pnpm regression:security: 36/36 file executions pass, including Deepmerge's 20 controls and the existing Zod backport's 56 controls.
  • Focused Pi runtime, environment watcher, launcher dotenv and Transformers/runtime identity regressions pass. The real Pi provider-adapter round trip exercises permissions, aborts, closed tools and malformed-call recovery with the retained direct Pi AI 1.3.0 and newly introduced transitive 1.4.0 combination. The direct pin is intentionally unchanged; the runtime regression exercises the cross-copy interfaces.
  • Real MCP in-memory client/server proof on resolved SDK 1.32.2 passes tool listing, registration after connection, schema publication, successful calls, invalid-input rejection without handler execution, and a healthy retry.
  • Actual Engine localization modules on i18next 26.5.11 pass English/partial Polish fallback, plurals, empty translations, interpolation literals, prototype-method protection and invalid/offline language fallback. Only API/fetch I/O is mocked.
  • pnpm smoke:ui: 7/7 pass unchanged on replay. The first run hit local ENOSPC during browser-context cleanup; original log/traces/data were retained, completed validation caches were reclaimed, and no source, assertion or timeout changed.
  • pnpm smoke:production: 3/3 pass on desktop Chromium, mobile Chromium and mobile WebKit.
  • Local CodeRabbit completed across all 11 changed files with zero findings. The imported .patch is byte-identical to pnpm's maintained source, including literal unified-diff context whitespace; non-patch source whitespace checks pass.

Security claim boundaries:

  • Configured pnpm audit exits 0 with no unsuppressed advisories. Raw registry/version metadata still matches two advisories: locally patched Deepmerge and the existing locally patched Zod API-1 alias. This does not claim the unmodified upstream versions are safe.

  • Deepmerge belongs to the PWA build chain through Workbox/Rollup. The package-level exploit was reproduced before the patch; an application attack path has not been demonstrated.

  • The four open fast-uri reports were already repaired on staging by #8074 and are now accurately marked fix_started. Default main still awaits normal promotion; this PR does not promote it.

  • 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

  • Local Docker execution was unavailable because the daemon socket is absent. Required hosted container checks must pass before merge; full and lite staging-push login/build/publication must be inspected afterward.
  • The final combined revision passed a fresh hosted Android job: checkout 345fc3cee510e3f84d8ff4d086d3425c5b48e877 merges this head into staging 387abb65, with JDK 17.0.21+9 and Gradle 9.8.2. Debug assembly, unsigned-release exact-message rejection and APK artifact upload all passed. A positively signed production release and physical-device execution remain manual.
  • Runtime tests use fake model providers and in-memory MCP. They do not establish live third-party model behavior. Browser device emulation is separate from physical-device verification.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) 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)

Developer patch notes record the upstream source, affected entrypoints, reachability limits, audit exception and removal criteria. No user-facing installation, configuration or UI contract changed, so no translated guide change is needed.

UI evidence (if applicable)

No UI design changed. Existing shell and compiled-frontend browser smoke suites were exercised with the updated localization dependency.


🔄 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/8451 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `chore/dependabot-security-sweep-20261029` --- ### 📝 Commits (2) - [`95a54a8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/95a54a888733eee4a3b9139117cfeb9ba0f1af0b) chore: start validated dependency maintenance (#8450) - [`650f235`](https://github.com/Pasta-Devs/Marinara-Engine/commit/650f2359b320cbe8ab26bf597ae5d3900bd829b4) chore: validate dependency updates and backport deepmerge security fix (#8450) ### 📊 Changes **11 files changed** (+337 additions, -71 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/build-container-lite.yml` (+2 -2) 📝 `.github/workflows/build-container.yml` (+2 -2) 📝 `android/build.gradle` (+1 -1) 📝 `packages/client/package.json` (+1 -1) 📝 `packages/server/package.json` (+3 -3) ➕ `patches/deepmerge-security-backport.md` (+11 -0) ➕ `patches/deepmerge@4.3.1.patch` (+93 -0) 📝 `pnpm-lock.yaml` (+102 -54) 📝 `pnpm-workspace.yaml` (+8 -5) ➕ `scripts/regressions/deepmerge-security-backport.regression.mjs` (+111 -0) 📝 `scripts/regressions/zod-security-backport.regression.mjs` (+3 -3) </details> ### 📄 Description ## Linked issue Closes #8450 Supersedes #8431, #8432, #8433, #8434, #8435 and #8436 after delivery. The incompatible standalone ONNX update #8437 was closed with the actual runtime-contract failure. ## Why this change The maintainer requested all feasible Dependabot updates and vulnerability reports to be addressed. These updates share a lockfile, and the MCP version change also needs its workspace override corrected to take effect. A fresh audit found a real deepmerge prototype-poisoning issue with no released fixed version; the supported maintenance path is a tested source backport rather than leaving the dependency vulnerable or hiding an unpatched advisory. ## What changed - Update MCP SDK to 1.32.2, Pi coding agent to 1.4.0, i18next to 26.5.11, and dotenv to 18.0.9. Correct the MCP override and regenerate the lockfile so the installed SDK actually becomes 1.32.2. - Update Android Gradle Plugin to 9.5.0, retaining the compatible Gradle 9.8.2/JDK 17 configuration and all application version/signing settings. - Pin docker/login-action 4.7.0 to its immutable upstream SHA in all four full/lite container login steps. - Apply the unchanged pnpm-maintained deepmerge 4.3.1 patch to both copy loops in its source, CJS and UMD entrypoints. Malicious `__proto__` keys are rejected while ordinary merge, cloning, symbols and constructor/prototype data retain their behavior. - Add installed-package security proof covering 20 poisoning/safe controls, all consumer resolutions and exact patch/lock hashes. Permit only its specific advisory alongside the separately verified Zod compatibility backport; both regressions guard the exact two exceptions. - Preserve the existing ONNX backend pair and all other security overrides/patches. No root release version, storage format or CHANGELOG change. ## Validation Completed locally on `650f2359b320cbe8ab26bf597ae5d3900bd829b4`: - Normal lockfile regeneration, frozen installation and frozen idempotence replay pass. Independent graph review confirms only the four intended npm bumps and their required transitives changed; unchanged package integrities, ONNX records, and all existing patch bytes/hashes remain intact. - `pnpm check` and `pnpm version:check` pass. Existing warnings remain. - `REGRESSION_CONCURRENCY=4 pnpm regression:security`: 36/36 file executions pass, including Deepmerge's 20 controls and the existing Zod backport's 56 controls. - Focused Pi runtime, environment watcher, launcher dotenv and Transformers/runtime identity regressions pass. The real Pi provider-adapter round trip exercises permissions, aborts, closed tools and malformed-call recovery with the retained direct Pi AI 1.3.0 and newly introduced transitive 1.4.0 combination. The direct pin is intentionally unchanged; the runtime regression exercises the cross-copy interfaces. - Real MCP in-memory client/server proof on resolved SDK 1.32.2 passes tool listing, registration after connection, schema publication, successful calls, invalid-input rejection without handler execution, and a healthy retry. - Actual Engine localization modules on i18next 26.5.11 pass English/partial Polish fallback, plurals, empty translations, interpolation literals, prototype-method protection and invalid/offline language fallback. Only API/fetch I/O is mocked. - `pnpm smoke:ui`: 7/7 pass unchanged on replay. The first run hit local ENOSPC during browser-context cleanup; original log/traces/data were retained, completed validation caches were reclaimed, and no source, assertion or timeout changed. - `pnpm smoke:production`: 3/3 pass on desktop Chromium, mobile Chromium and mobile WebKit. - Local CodeRabbit completed across all 11 changed files with zero findings. The imported `.patch` is byte-identical to pnpm's maintained source, including literal unified-diff context whitespace; non-patch source whitespace checks pass. Security claim boundaries: - Configured `pnpm audit` exits 0 with no unsuppressed advisories. Raw registry/version metadata still matches two advisories: locally patched Deepmerge and the existing locally patched Zod API-1 alias. This does not claim the unmodified upstream versions are safe. - Deepmerge belongs to the PWA build chain through Workbox/Rollup. The package-level exploit was reproduced before the patch; an application attack path has not been demonstrated. - The four open fast-uri reports were already repaired on staging by #8074 and are now accurately marked `fix_started`. Default `main` still awaits normal promotion; this PR does not promote it. - [ ] `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 - Local Docker execution was unavailable because the daemon socket is absent. Required hosted container checks must pass before merge; full and lite staging-push login/build/publication must be inspected afterward. - The final combined revision passed a fresh [hosted Android job](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/40866960022/job/123424842003): checkout 345fc3cee510e3f84d8ff4d086d3425c5b48e877 merges this head into staging 387abb65, with JDK 17.0.21+9 and Gradle 9.8.2. Debug assembly, unsigned-release exact-message rejection and APK artifact upload all passed. A positively signed production release and physical-device execution remain manual. - Runtime tests use fake model providers and in-memory MCP. They do not establish live third-party model behavior. Browser device emulation is separate from physical-device verification. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) 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) Developer patch notes record the upstream source, affected entrypoints, reachability limits, audit exception and removal criteria. No user-facing installation, configuration or UI contract changed, so no translated guide change is needed. ## UI evidence (if applicable) No UI design changed. Existing shell and compiled-frontend browser smoke suites were exercised with the updated localization dependency. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:45:57 +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#8610
No description provided.