-
fix(cli): replace abandoned decompress dependency (GHSA-mp2f-45pm-3cg9) (#3767)
发布于
2026-07-07 14:58:17 +00:00 This PR:
- replaces
decompress(unmaintained; the zip-slip fix in the GHSA
advisory was never published to npm past 4.2.1) withextract-zip
across the CLI's four zip-extraction call sites:install-skill.ts,
run-companion-modules.ts,upgrade-binary.ts, and
cli-local-tools/bundled-binaries.ts extract-zipvalidates each entry resolves inside the target
directory before writing, closing the path-traversal issuepnpm audit
flags as critical- replaces the one
.tgz-extracting call site
(scripts/_acp-adapters.ts, used to vendor ACP adapter binaries at
build time) withtar, sinceextract-ziponly handles zip archives - removes
@types/decompress; bothextract-zipandtarship their
own type definitions pnpm audit --prod --audit-level=highnow passes (previously failing
onnext, unrelated to #3766)
Verified
extract-zipandtarextract nested directories correctly
with a local smoke test (real.zip/.tgzarchives), in addition to
the existing@composio/cli(724 tests) and@composio/cli-local-tools
(13 tests) suites passing.下载附件
- replaces