fix(deps): upgrade adm-zip to 0.6.0 to fix GHSA-xcpc-8h2w-3j85 (#2643)

adm-zip <0.6.0 allows a crafted ZIP to trigger a ~4GB memory
allocation (GHSA-xcpc-8h2w-3j85). Bump the dependency in the web
and vscode packages to ^0.6.0. The new AdmZip(buffer) and
extractAllTo(dir, overwrite) APIs are unchanged, so no call-site
adaptation is needed.

Add a vitest regression test for the ClawdHub install path that
builds a real ZIP with adm-zip and asserts extractAllTo restores
files (including nested subdirectories) into the target skill dir.
This commit is contained in:
Mel0ny
2026-08-06 22:59:08 +03:00
committed by GitHub
parent 2c331e2f8b
commit 7e0e22f6e2
4 changed files with 105 additions and 5 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
"@octokit/rest": "^22.0.1",
"@opencode-ai/sdk": "1.18.12",
"@simplewebauthn/server": "13.3.1",
"adm-zip": "^0.5.16",
"adm-zip": "^0.6.0",
"bun-pty": "^0.4.5",
"compression": "^1.8.1",
"cron-parser": "^4.9.0",