CVE-2026-59807: Composio SDK path validation bypass in CLI tool-file-uploads

CVE-2026-59807 · Severity: medium · CVSS 6.8 · Published 2026-07-08

Composio is an SDK used to connect AI agents and LLMs to external tools and services. A security flaw in the CLI component allowed attackers to trick AI agents into uploading sensitive local files, such as SSH keys, AWS credentials, and environment files, to attacker-controlled servers. This could lead to a full compromise of the user's cloud infrastructure or private accounts.

Technologies: ComposioHQ Composio. Vendors: ComposioHQ.

Quick answers

Is CVE-2026-59807 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-59807 being exploited in the wild.
How severe is CVE-2026-59807?
Medium severity, with a CVSS score of 6.8, published 8 July 2026.
Which products and versions are affected?
ComposioHQ Composio < 0.2.32-beta.283.
Is there a fix for CVE-2026-59807?
A patch was published on 2026-07-06: Fix merged in PR #3763 and released in 0.2.32-beta.283 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-59807 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-59807?
Check whether you run ComposioHQ Composio at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A path validation bypass vulnerability exists in the Composio CLI due to a missing 'assertSafeFileUploadPath' check in the 'readFileFromDisk' function within 'tool-file-uploads.ts'. While the core SDK and Python versions implemented a sensitive-file denylist, the CLI's duplicate upload path did not. An attacker can use prompt injection against an LLM-driven agent to manipulate 'file_uploadable' parameters, referencing sensitive local paths (e.g., ~/.ssh/id_rsa). This causes the CLI to read and upload these credential files to an attacker-controlled storage location. The issue is fixed in version 0.2.32-beta.283 by unifying the security guard across all SDK primitives.

Affected products

  • ComposioHQ composio < 0.2.32-beta.283

Timeline

  • 2026-07-06: patched: Fix merged in PR #3763 and released in 0.2.32-beta.283
  • 2026-07-08: disclosed: CVE-2026-59807 published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.