[GH-ISSUE #4581] [Issue]: Upgrade the pinned pnpm release and refresh it during launcher updates #2499

Closed
opened 2026-10-21 05:49:03 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Aug 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4581

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Marinara Engine pins pnpm 10.33.2, which falls within the affected range of multiple pnpm security advisories fixed in 10.34.5. An already-running launcher also retains the old runner after pulling updated Engine files, so it must not be allowed to install the newly updated workspace.

Expected behavior

Fresh installs and updated launchers should select the exact repository-pinned pnpm 10.34.5 release before installing dependencies. Corepack should verify the pinned release digest, and fallback paths should reject arbitrary globally installed pnpm versions.

For users updating through an already-running 10.33.2 launcher, the first run should fail closed before dependency installation. After relaunch, the refreshed launcher should obtain and verify 10.34.5, then continue normally.

Actual behavior

The repository and distribution paths currently pin pnpm 10.33.2. The Windows, macOS/Linux, and Termux launchers resolve that version before Git updates the checkout, then reuse the stale runner for the post-update dependency installation. Some install paths also accept a different globally installed pnpm version.

Steps to reproduce

  1. Start from a Git checkout whose package.json pins pnpm 10.33.2.
  2. Make an update available that raises the repository pin and pnpm engine floor.
  3. Run the existing platform launcher and let it update the checkout.
  4. Observe that the running launcher still invokes its pre-update runner.
  5. Relaunch and observe that the refreshed launcher can select the new repository pin.

Environment

  • Marinara Engine version: current staging
  • Install type: source / installer / Docker / Termux update paths
  • OS + version: cross-platform launcher behavior
  • Browser or app shell: not applicable

Logs, screenshots, or video

No runtime log attached. The behavior is visible in the launcher control flow: pnpm selection occurs before the Git update and the already-running script cannot safely replace its own runner implementation.

Additional context

Target the exact patched pnpm 10.34.5 release and pin its SHA-512 digest for Corepack. Keep the dependency lockfile unchanged, update every hard-coded distribution pin, reject mismatched global versions, and add narrow launcher regression coverage. Relevant upstream advisories include GHSA-vq4v-j7r6-jq4m, GHSA-c59q-g84q-2gj5, and GHSA-vx52-2968-3vc6.

The active August 4 npm supply-chain incident was audited separately: the locked Engine dependencies do not match the confirmed poisoned versions, and this change must not refresh the lockfile.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4581 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Marinara Engine pins pnpm 10.33.2, which falls within the affected range of multiple pnpm security advisories fixed in 10.34.5. An already-running launcher also retains the old runner after pulling updated Engine files, so it must not be allowed to install the newly updated workspace. ## Expected behavior Fresh installs and updated launchers should select the exact repository-pinned pnpm 10.34.5 release before installing dependencies. Corepack should verify the pinned release digest, and fallback paths should reject arbitrary globally installed pnpm versions. For users updating through an already-running 10.33.2 launcher, the first run should fail closed before dependency installation. After relaunch, the refreshed launcher should obtain and verify 10.34.5, then continue normally. ## Actual behavior The repository and distribution paths currently pin pnpm 10.33.2. The Windows, macOS/Linux, and Termux launchers resolve that version before Git updates the checkout, then reuse the stale runner for the post-update dependency installation. Some install paths also accept a different globally installed pnpm version. ## Steps to reproduce 1. Start from a Git checkout whose package.json pins pnpm 10.33.2. 2. Make an update available that raises the repository pin and pnpm engine floor. 3. Run the existing platform launcher and let it update the checkout. 4. Observe that the running launcher still invokes its pre-update runner. 5. Relaunch and observe that the refreshed launcher can select the new repository pin. ## Environment - Marinara Engine version: current staging - Install type: source / installer / Docker / Termux update paths - OS + version: cross-platform launcher behavior - Browser or app shell: not applicable ## Logs, screenshots, or video No runtime log attached. The behavior is visible in the launcher control flow: pnpm selection occurs before the Git update and the already-running script cannot safely replace its own runner implementation. ## Additional context Target the exact patched pnpm 10.34.5 release and pin its SHA-512 digest for Corepack. Keep the dependency lockfile unchanged, update every hard-coded distribution pin, reject mismatched global versions, and add narrow launcher regression coverage. Relevant upstream advisories include GHSA-vq4v-j7r6-jq4m, GHSA-c59q-g84q-2gj5, and GHSA-vx52-2968-3vc6. The active August 4 npm supply-chain incident was audited separately: the locked Engine dependencies do not match the confirmed poisoned versions, and this change must not refresh the lockfile. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:49:03 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 4, 2026):

Claimed by @SpicyMarinara via PR #4582. I am implementing the exact pnpm 10.34.5 pin and first-update launcher handoff on agent/pnpm-10-34-5.

<!-- gh-comment-id:5182077388 --> @SpicyMarinara commented on GitHub (Aug 4, 2026): Claimed by @SpicyMarinara via PR #4582. I am implementing the exact pnpm 10.34.5 pin and first-update launcher handoff on `agent/pnpm-10-34-5`.
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#2499
No description provided.