fix(security): scope glob and minimatch overrides to affected parents

This commit is contained in:
victorsteele428 committed 2026-11-22 14:33:36 +00:00
1 parent 43eee54e7a
commit 66cfed5a8b
25 files changed
+331 -138

No files matched your search

+13
View File
@@ -53,3 +53,16 @@ Expected patched direct candidates: Next.js `16.4.6` both apps; Login `@opentele
- Remaining P05-SEC-02 focus: narrow authorized `auth/ui/v2/pnpm-workspace.yaml` overrides or compatible parent dependency upgrades, reproducible pinned lock, exact transitive resolution and fail-closed Gitea frozen/security/build/unit acceptance. No login/auth/UI source changes.
**P05-SEC-01 classification: PATCH IMPLEMENTED AND BUILDS PASS; SECURITY ACCEPTANCE BLOCKED, not a production release.** Final docs-only SHA differs from the tested Run #87 source SHA.
## P05-SEC-02 — exact seven parent-scoped transitive fixes (candidate)
**Approved baseline:** `43eee54e7ad6b647e38491ac4dc28703547cf410`; **prior failed audit:** Run #87, exactly two Moderate Login advisories and zero High/Critical. No Account changes.
The current pnpm lock snapshots contained only two **direct glob10** parent refs (`rimraf@5.0.10`, `archiver-utils@5.0.2`) and five direct **minimatch10** parent refs (`@eslint/config-array@0.23.5`, `@typescript-eslint/typescript-estree@8.67.0`, `eslint@10.8.1`, `nodemon@3.1.14`, `nx@22.7.12`). The inherited `glob@10.5.0` also depended on `minimatch@9.0.9`. The old ranges were respectively `^10.3.7`, `^10.0.0`, `^10.2.4`, `^10.2.2`, `^10.2.5`, `^10.2.1`, and exact `10.2.5`.
Selected exact patch pins `glob@14.0.6` and `minimatch@11.0.9` are **published**, and both support Node 22. `glob@14.0.6` depends on `minimatch@^11.0.5`. `auth/ui/v2/pnpm-workspace.yaml` gets **only those seven parent-scoped replacements**, not a broad global major override; previous seven workspace overrides and the three imported workspace package paths remain unchanged. A pinned `pnpm@10.30.3` **metadata-only** lockfile regeneration showed `glob@14.0.6`, `minimatch@11.0.9` plus unaffected `minimatch@3.1.5/5.1.9` (outside both GHSA ranges). Its delta was just **35 added / 115 removed lock lines** prior to source commit, with **no application `node_modules` created**.
The seven *semver-major transitive* substitutions require runtime compatibility proofs. `tests/ci/transitive_override_contract.py` checks exact selector ownership, absence of vulnerable lock versions, unchanged importer requirements and the seven parent→version resolutions; it is CI-only. Manual Gitea security workflow option `login_only=true` skips previously accepted Account jobs, executes Login frozen install/build/upstream unit suite and a **strict zero Moderate/High/Critical** live production registry audit. Leave original Login auth, Account Portal, backend, deployment and unrelated package manifests read-only. Source presence is not a production-security guarantee.
**Security acceptance:** PENDING the one focused Gitea run. If registry audit or upstream regression fails, document exact blocker rather than suppressing findings or silently changing major versions.