Commit 435c25f
committed
feat(security): harden CLI security, fix ZIP extraction, upgrade dependencies to Node 18+ ESM targets
- Replaced all JSON.parse calls with safeJsonParse prototype pollution protection
- Hardened share HTTP server with rate limiting (60 req/min), CORS restriction, and security headers
- Fixed archiver v8 data descriptor ZIP extraction for commit rollback
- Upgraded dependencies (commander 15.x, archiver 8.x, esbuild 0.28.x, ssh2 1.17.x)
- Replaced deprecated pkg with @yao-pkg/pkg 6.22.0
- Verified 0 vulnerabilities across 230+ audited packages1 parent 43e988d commit 435c25f
27 files changed
Lines changed: 1650 additions & 1699 deletions
File tree
- cloudsync-cli
- bin
- src
- cli/commands
- core
- crypto
- transport
- vcs
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
| |||
0 commit comments