External Control of File Name or Path Affecting @composio/core package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.29% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-COMPOSIOCORE-17905545
  • published9 Jul 2026
  • disclosed8 Jul 2026
  • creditGeorge Chen

Introduced: 8 Jul 2026

NewCVE-2026-59807  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to External Control of File Name or Path via the readFileFromDisk function in tool-file-uploads.ts. An attacker can exfiltrate sensitive local files by prompt-injecting tool arguments that point the upload path at credential files such as ~/.ssh/id_rsa, ~/.aws/credentials, or .env. The CLI reads the chosen path and uploads its contents to attacker-controlled storage, exposing secrets and breaking the user’s ability to keep local credentials private.

Notes

  • The CLI path is the duplicate local-file upload flow used by composio execute / composio run; the vulnerable read happens before any presigned-URL request, so the leak occurs even if the upload never completes.
  • The bypass is broader than a single filename check: the guard had to account for canonicalized paths and symlinks, so a link that resolves into a sensitive location is part of the exposed surface.

CVSS Base Scores

version 4.0
version 3.1