-
security(core): sensitive path blocklist + beforeFileUpload hook (patch) (#3262)
发布于
2026-04-23 13:12:16 +00:00 Summary
Security-hardening for automatic file upload in
@composio/core(patch
release per changeset).Changes
- Default denylist for local paths before auto-upload /
files.upload: blocks common credential directories (e.g..ssh,
.aws) and credential-like filenames (e.g..env, default SSH private
keys). Resolves symlinks when the path exists. - Config:
sensitiveFileUploadProtection,
fileUploadPathDenySegmentsonComposio. beforeFileUploadhook (e.g. withcomposio.tools.get/
tools.execute): rewrite path, returnfalseto abort, or throw.- Errors:
ComposioSensitiveFilePathBlockedError,
ComposioFileUploadAbortedError; file modifier errors exported from
@composio/coreerrors entry. - Changeset: patch bump for
@composio/core.
Notes
- URLs and
Fileblobs are not subject to the path denylist
(unchanged). - Opt out of path checks only if required:
sensitiveFileUploadProtection: false.
Tests
pnpm testints/packages/core(799 tests) passed locally before
commit.
Made with Cursor
下载附件
- Default denylist for local paths before auto-upload /