4.7 KiB
ZitPlane P05-SEC-02 — Final Transitive Dependency Remediation
Date: 2026-11-22
Approved baseline: 43eee54e7ad6b647e38491ac4dc28703547cf410
Prior evidence: Gitea Run #87: 3 PASS / 1 FAIL, Login security 2 Moderate; Account vulnerability audit 0; Login frozen install + production build + 1219/1219 unit tests PASS.
State: APPROVED / PRE-CHANGE SCOPE LOCK — no P05-SEC-02 source edits yet.
Exact approved Scope Lock
Allowed source writes: auth/ui/v2/pnpm-workspace.yaml, auth/ui/v2/pnpm-lock.yaml, and only if justified auth/ui/v2/package.json, auth/ui/v2/apps/login/package.json; narrowly related .gitea/workflows/p05-security-acceptance.yml, tests/ci/**; notes/**, project/**, relevant docs/** and applicable README/MINIFEST.
Read-only: original official Login V2 application/auth/UI source, users/ui/**, core/backend/zitadel/**, deployment/docker/**, other packages, production configuration, secrets and unrelated files. Preserve untracked AI_INSTRUCTIONS.md.
No local application builds, installs, tests, dev servers or Docker. Only a pinned pnpm metadata-only lockfile reconciliation is authorized locally; do not install dependencies, run application code, or rewrite extra files. Exactly one focused Gitea CI cycle after source commit/push; no repeated loops. Record actual PASS/FAIL, cleanup and remote SHA.
Pre-edit exact root-cause proof (read-only source lock + live npm registry metadata)
Advisories:
GHSA-3g3m-2fjr-6pw4— vulnerableglob@10.5.0, advisory affected >=9.0.0 <=14.0.1, patched >=14.0.2. Current graph only 2 direct vulnerable edges:rimraf@5.0.10 → glob@10.5.0(parent range^10.3.7),archiver-utils@5.0.2 → glob@10.5.0(parent range^10.0.0). An additionalglob@10.5.0 → minimatch@9.0.9edge will disappear when its parent is no longer installed.GHSA-g3hv-75wg-m249— vulnerableminimatch@10.2.5/10.2.6andminimatch@9.0.9through old glob, affected >=7.0.0 <11.0.1, patched >=11.0.1. Five direct pinned edges:@eslint/config-array@0.23.5 → minimatch@10.2.6(range^10.2.4),@typescript-eslint/typescript-estree@8.67.0 → minimatch@10.2.6(range^10.2.2),eslint@10.8.1 → minimatch@10.2.6(range^10.2.5),nodemon@3.1.14 → minimatch@10.2.6(range^10.2.1),nx@22.7.12 → minimatch@10.2.5(exact10.2.5).
Registry candidate patch: glob@14.0.6 is published; Node engine 18 || 20 || >=22, depends on minimatch@^11.0.5. minimatch@11.0.9 is published; Node engine 20 || >=22. Gitea runner is Node 22. Both exports include CommonJS/ESM support. Semver-major compatibility is a risk, not guaranteed; only new frozen install/build/unit/security CI validates it. No blind global glob@<14>glob or global minimatch@<11> override.
Narrow proposed patch and plan (must be completed only after this note)
- Insert exactly 7 direct parent-scoped PNPM workspace overrides:
rimraf@5.0.10>glob,archiver-utils@5.0.2>globpinned14.0.6;@eslint/config-array@0.23.5>minimatch,@typescript-eslint/typescript-estree@8.67.0>minimatch,eslint@10.8.1>minimatch,nodemon@3.1.14>minimatch,nx@22.7.12>minimatchpinned11.0.9. Preserve all existing workspace members/overrides and Login/application manifests. - Run only
pnpm@10.30.3 install --lockfile-only --ignore-scriptswith frozen lock disabled to regenerate reproducible PNPM v9 metadata. No project node_modules. Confirm no old vulnerable versions/edges remain, unchanged importers and exactly seven scoped overrides. - Use existing dedicated manual Gitea security acceptance workflow's pinned PNPM frozen install, Login Nx production build, upstream Vitest and HIGH/CRITICAL plus strict zero Moderate/High/Critical live audit. If needed, narrowly scope this single run to Login jobs without changing production/app logic; do not claim full acceptance on source appearance alone.
- Exact source/security diff audit; update docs, notes, project manifests; commit, push Gitea main; dispatch one focused CI run. Document tested source SHA, all job results and any remaining failing advisories/blockers honestly; final docs-only commit/push and remote verification.
Acceptance contract
PASS only when exact vulnerable glob/minimatch resolved versions are absent from lock, pinned PNPM frozen install PASS, official Login V2 Nx production build and targeted upstream unit regressions PASS, and live Login pnpm audit --prod reports zero Moderate/High/Critical. A blocking failure is documented, never bypassed. Account security previously zero in Run #87; authenticated OIDC/MFA/production are separate phases.
Execution evidence: PENDING source patch and one Gitea CI run.