mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6037] [MERGED] fix(security): address dependency advisories and isolate archive extraction #7037
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7037
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6037
Author: @SpicyMarinara
Created: 9/10/2026
Status: ✅ Merged
Merged: 9/10/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/security-sweep-20260910📝 Commits (3)
0ed4aecfix(deps): pin patched Hono and YAML versionsc896b61fix(security): isolate runtime archive extraction3fc5ab1fix(docker): include dependency patches in Lite installs📊 Changes
10 files changed (+234 additions, -23 deletions)
View changed files
📝
.github/workflows/security-audit.yml(+1 -0)📝
CHANGELOG.md(+2 -0)📝
Dockerfile(+2 -0)📝
Dockerfile.lite(+2 -0)📝
package.json(+2 -2)📝
packages/server/src/services/sidecar/sidecar-runtime.service.ts(+8 -5)➕
patches/onnxruntime-node@1.24.3.patch(+14 -0)📝
pnpm-lock.yaml(+21 -16)📝
pnpm-workspace.yaml(+12 -0)➕
scripts/regressions/archive-extraction-security.regression.ts(+170 -0)📄 Description
Linked issue
Closes #6035
Why this change
The sidecar and ONNX installers used predictable extraction directories. A pre-seeded symlink could redirect ZIP output outside the intended directory; the regression reproduces an outside-file overwrite in both original callers. Give both installers exclusive private directories, retain sidecar directory privacy across retries, and install the available Hono/YAML security patches.
What changed
mkdtempSync; clean partial contents while retaining the private directory on retry, and remove temporary directories on failure.mkdtempSyncinstead of a timestamped, reusable temporary directory.pnpm regression:security. Remove the exception/ONNX patch when an upstream fix is available, and preserve this invariant for any new extraction caller. This is a caller mitigation, not an upstream adm-zip fix; raw audit metadata still counts one moderate advisory.Alert review
Full applicability record.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Completed locally:
pnpm installusing the existing dependency cache, then regenerated installation after the dependency changes. Native ONNX binding validation passed on macOS arm64.pnpm check,pnpm regression:security(18 regression files),pnpm version:check, andgit diff --checkpassed.pnpm audit --audit-level lowpasses with the single documented caller-mitigated adm-zip exception. Raw audit metadata still reports that one upstream moderate advisory.The initial isolated install exhausted local disk space; its incomplete cache was removed, and the existing cache was reused successfully. Full container build verification uses required CI. The Lite build/production manifest setups were checked with pnpm’s offline frozen-lockfile preflight: they failed when the patch directory was omitted and passed after it was copied. No full Lite image build, local full Docker build, or container runtime boot is claimed for this PR. No real Windows GPU installation or manual UI walkthrough is claimed.
Completed CI on
3fc5ab196d49a8e0a6ba605179dc03d6abf62445: all 28 distinct checks passed before the staging merge, including project/container validation, dependency audit, the full Node and browser matrix, and CodeQL. CodeRabbit’s final review covers that commit, has no actionable comments, and there are no unresolved review threads. See the archive caller applicability evidence.Docs and release impact
Added an Unreleased security-fix changelog entry. Existing installation requirements and release versions are unchanged; no main promotion is included. Source archives and git-based launchers include the checked-in dependency patch.
UI evidence (if applicable)
No UI changes. The first CI run had one failure in the existing WebKit character-sheet settings test; that test and the affected client code are unchanged by this PR. The unmodified test then passed three consecutive local WebKit runs. The same case passed in the final CI run, and all browser shards and aggregate checks passed without any UI or test changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.