Client dependency refresh — npm 10 arborist bug blocks audit fix; 24 trivy findings triaged in .trivyignore #83

Closed
opened 2026-11-07 07:11:58 +01:00 by amiryahaya · 1 comment
Owner

Follow-up from task 0.6 / security-ci (#14): trivy flags 24 HIGH findings across clients/admin/package-lock.json (16) + clients/desktop/package-lock.json (8) — all in dev/build-time tooling (nanoid, picomatch, postcss, react-router, source-map-js, vite launch-editor). None is in the API runtime.

Blocked by an npm bug: npm 10.9.8 arborist crashes with TypeError: Cannot read properties of null (reading 'edgesOut') on plain install / update / audit fix for these trees (peer-set loader). --legacy-peer-deps installs fine but targeted upgrades (react-router@7.18, vite@7.3.7, zod@4.x) break the vitest setup — this is a dependency-refresh project, not piecemeal fixes.

Interim triage: all 24 CVEs are listed in .trivyignore with justification + expiry (see file header). Gate remains hard for production paths — anything outside the client lockfiles fails security-ci.

Fix plan (at this milestone):

  1. Upgrade npm past the arborist bug (or regenerate trees with pnpm), then targeted bumps: nanoid ≥3.3.18, picomatch ≥4.0.4/2.3.2, postcss ≥8.5.12, source-map-js ≥1.2.2, react-router ≥7.18.0, vite ≥7.3.7, zod ≥4.6.6.
  2. Restore vitest setup compatibility (desktop 1285 + admin 237 green).
  3. Remove the matching lines from .trivyignore; trivy gate must be clean.

Deadline: before the first client RELEASE milestone (desktop bundle ships deps to users — M4/M5 hardening).

Follow-up from task 0.6 / security-ci (#14): trivy flags **24 HIGH findings** across `clients/admin/package-lock.json` (16) + `clients/desktop/package-lock.json` (8) — all in dev/build-time tooling (nanoid, picomatch, postcss, react-router, source-map-js, vite launch-editor). None is in the API runtime. **Blocked by an npm bug**: npm 10.9.8 arborist crashes with `TypeError: Cannot read properties of null (reading 'edgesOut')` on plain `install` / `update` / `audit fix` for these trees (peer-set loader). `--legacy-peer-deps` installs fine but targeted upgrades (`react-router@7.18`, `vite@7.3.7`, `zod@4.x`) break the vitest setup — this is a dependency-refresh project, not piecemeal fixes. **Interim triage**: all 24 CVEs are listed in `.trivyignore` with justification + expiry (see file header). Gate remains hard for production paths — anything outside the client lockfiles fails security-ci. **Fix plan** (at this milestone): 1. Upgrade npm past the arborist bug (or regenerate trees with pnpm), then targeted bumps: nanoid ≥3.3.18, picomatch ≥4.0.4/2.3.2, postcss ≥8.5.12, source-map-js ≥1.2.2, react-router ≥7.18.0, vite ≥7.3.7, zod ≥4.6.6. 2. Restore vitest setup compatibility (desktop 1285 + admin 237 green). 3. Remove the matching lines from `.trivyignore`; trivy gate must be clean. **Deadline**: before the first client RELEASE milestone (desktop bundle ships deps to users — M4/M5 hardening).
Author
Owner

RESOLVED — closing. PR #140 (squash, CIs: admin-ci 12388 + desktop-ci 12389 + security-ci 12360 all green on the final head): the arborist bug is bypassed by REGENERATING lockfiles instead of in-place updates; targeted top-level bumps (vite/vitest/react-router-dom/typescript-eslint latest, zod ^4.6.7) + overrides for patched transitives + @testing-library/dom explicit peer. Admin 26 → 7 findings (0 HIGH/CRIT), desktop 24 → 8 (0 HIGH/CRIT) — local trivy verified on both lockfiles; .trivyignore client block removed (spike block retained). CI fixes en route: npm install over npm ci (npm/cli#4828 macOS-regen omits linux natives — lockfiles enriched with linux-x64 entries) + react-hooks v7 set-state-in-effect downgraded to warn (8 pre-existing sites, tracked as lint debt).

RESOLVED — closing. PR #140 (squash, CIs: admin-ci 12388 + desktop-ci 12389 + security-ci 12360 all green on the final head): the arborist bug is bypassed by REGENERATING lockfiles instead of in-place updates; targeted top-level bumps (vite/vitest/react-router-dom/typescript-eslint latest, zod ^4.6.7) + overrides for patched transitives + @testing-library/dom explicit peer. Admin 26 → 7 findings (0 HIGH/CRIT), desktop 24 → 8 (0 HIGH/CRIT) — local trivy verified on both lockfiles; .trivyignore client block removed (spike block retained). CI fixes en route: npm install over npm ci (npm/cli#4828 macOS-regen omits linux natives — lockfiles enriched with linux-x64 entries) + react-hooks v7 set-state-in-effect downgraded to warn (8 pre-existing sites, tracked as lint debt).
Sign in to join this conversation.
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
primatekuntech/failsulit#83
No description provided.