Commit 811c599
fix(security): patch shipping dep CVEs + make audit gate meaningful
The security workflow ran 'npm audit' on a throwaway npm tree (repo is
pnpm) at --audit-level=high, so it flapped red daily on transitive
build/test-tooling CVEs that never reach users.
- Patch the real production-reachable vulns via pnpm.overrides (same-major,
safe): shell-quote (critical), undici, node-forge, @xmldom/xmldom,
fast-uri, hono, @hono/node-server, @babel systemjs, minimatch, picomatch,
tar@7. Bump next 16.1.4 -> 16.2.9 (HTTP-deserialization DoS).
- Rework the gate: audit the real pnpm lockfile, --prod (what ships),
print the full high/moderate report for visibility, but BLOCK only on
critical (rare + actionable; transitive high tooling churn is constant
noise and is fixed via overrides when it actually reaches prod).
Verified: web typecheck + 537 tests + next build, desktop 461 tests, and
`pnpm audit --prod --audit-level critical` passes (0 critical).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 811588d commit 811c599
4 files changed
Lines changed: 341 additions & 188 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
40 | 48 | | |
41 | | - | |
| 49 | + | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
94 | 108 | | |
95 | 109 | | |
96 | 110 | | |
| |||
0 commit comments