mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8776] [MERGED] fix(deps): override glob and minimatch to their fixed majors #8799
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#8799
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/8776
Author: @SpicyMarinara
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/dependency-audit-glob-minimatch📝 Commits (1)
c10139afix(deps): override glob and minimatch to their fixed majors📊 Changes
3 files changed (+85 additions, -93 deletions)
View changed files
📝
pnpm-lock.yaml(+26 -93)📝
pnpm-workspace.yaml(+4 -0)➕
scripts/regressions/glob-minimatch-security-overrides.regression.mjs(+55 -0)📄 Description
Linked issue
Closes #8769
Why this change
The release-candidate dependency check (
pnpm audit --audit-level lowin security-audit.yml, named in SECURITY.md) fails on two moderate advisories. GHSA-3g3m-2fjr-6pw4 affects glob through @fastify/static and workbox-build. GHSA-g3hv-75wg-m249 affects minimatch through pi-coding-agent, eslint, typescript-eslint, glob and filelist. No untrusted input reaches either one: callers use constant or repo-authored patterns and pass no AbortSignal. Still, the failing gate blocks a release. The audit job also skips its ownregression:securitystep on PRs that touch dependency files. The fixes exist only in the glob 14 and minimatch 11 majors, and no parent package has adopted them yet, so scoped overrides are needed. There is no linked issue; one should be opened (or this finding referenced) before the PR is submitted.What changed
pnpm audit --audit-level lowpasses again. The only remaining ignored advisories are the existing, reviewed zod and deepmerge exemptions.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm install --frozen-lockfilefollowed bypnpm audit --audit-level lowexits 0 in the Security Audit GitHub workflow.pnpm build, thennode packages/server/dist/index.js) serves the app, its hashed /assets files and a reload. This path relies on @fastify/static walking client/dist with glob 14.pnpm lintreports the same results on a clean ESLint cache (eslint now matches its config files with minimatch 11).Agent-run checks (for reference; each regression was shown to fail without its fix):
node ./scripts/pnpm-runner.mjs audit --audit-level low (before fix): exit 1: 2 moderate (GHSA-g3hv-75wg-m249 minimatch, GHSA-3g3m-2fjr-6pw4 glob)node ./scripts/pnpm-runner.mjs install (with overrides), then install --frozen-lockfile: both exit 0; lockfile has single glob@14.0.3 and minimatch@11.0.4node ./scripts/pnpm-runner.mjs audit --audit-level low (after fix): exit 0; 'All found vulnerabilities were already reviewed and decided to be ignored', 2 ignored (existing zod/deepmerge)node ./scripts/pnpm-runner.mjs build:shared: exit 0node ./scripts/run-regressions.mjs --filter glob-minimatch-security-overrides (fix reverted via git stash of pnpm-workspace.yaml + pnpm-lock.yaml and frozen rei: FAILED: AssertionError glob@11.1.0 predates the fix (reproduced twice)node ./scripts/run-regressions.mjs --filter glob-minimatch-security-overrides (with fix): 1/1 passednode ./scripts/run-regressions.mjs --filter static-cache-headers: 1/1 passed (@fastify/static wildcard:false registration over a temp client dist, now on glob 14)node ./scripts/run-regressions.mjs --filter security-backport: 2/2 passed (zod and deepmerge backport guards, audit.ignore unchanged)node ./scripts/pnpm-runner.mjs regression:security: exit 0; security filter 33/33 passed (includes new regression), runtime-integrity, shell-sandbox, extension-ipc, android-local-auth, docker-proxy-auth each 1/1node ./scripts/run-regressions.mjs --filter professor-mari: 27/27 passed (includes pi-runtime, which loads pi-coding-agent on minimatch 11)node ./scripts/pnpm-runner.mjs check: exit 0 (impeccable, localization, format:check, lint incl. eslint on minimatch 11 and server/client tsc, e2e/token types, full build; PWA precache 519 entries)client build before vs after override (packages/client node ./scripts/build.mjs), compared precache URL lists in dist/sw.js: old 519 / new 519 entries, identical URL lists (workbox-build globSync on glob 14 unchanged)Independent adversarial review: approve.
Known limits and risks:
Forcing new majors: minimatch 11 replaces its regex engine with @isaacs/nonrecursive-glob-match and removes makeRe. No consumer here calls makeRe, but edge-case matching may differ subtly. The PWA precache list, eslint, Mari and production-startup checks showed no difference. pi-coding-agent pins minimatch 10.2.6 exactly, and the override goes beyond that pin. filelist expected minimatch 5 (whose CJS export is a function) but only calls
.match, which 11 still exports, and it is reached only through the ejs CLI. Thebrace-expansion@>=2 <2.1.7override no longer matches anything (brace-expansion 2 left the tree); I left it in place because the file says to keep existing overrides. I did not runpnpm smoke:ui(dev servers on shared fixed ports); smoke:production covers the @fastify/static path. Out of scope for this step: the user's relayed request to make showing an outfit to a love interest in Otome Hearth give +5 affection instead of +20 is NOT done here. Otome Hearth (otome-forge) is a downloadable package, and the outfit-affection logic is not in this Marinara Engine worktree; a search found only unrelated matches such asgotoMessage. Under AGENTS.md that change belongs in Pasta-Devs/Marinara-Agents (staging), so the orchestrator or user still needs to route it there.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.