NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Composio

CVE-2025-56427: ComposioHQ has a directory traversal vulnerability

mediumCVSS 4.0 5.5 · 3.1 7.5GHSA-3mwv-j45g-vp3w

The Composio Python SDK (pip package composio) has a directory traversal in the local server's `_download_file_or_dir` function, served at GET /api/download. A remote attacker can read any file the server process can read. The data lists versions up to 0.7.20 and no patched version.

Published Dec 4, 2025 · Updated Dec 5, 2025 · Analysis Nov 1, 2026

What an attacker can do

Composio's local server exposes GET /api/download with a file parameter. In python/composio/server/api.py, the value goes into Path(file) with no sanitization and the file is returned. Nothing confines the request to an intended folder, so an absolute path or .. segments reach files elsewhere on the machine.

The attacker needs network access to the server's port. The CVSS vector shows no privileges and no user interaction, and the impact is confidentiality only. The researcher's report names credential and configuration files as examples of what can be read: SSH keys, cloud credentials, .env files and the API keys that Composio itself uses to connect agents to third-party apps.

The report ran the server on localhost port 8000. That limits exposure to processes on the machine, and to web pages in the user's browser if the server is not protected against browser cross-origin requests. The sources do not discuss that case. A server bound to a network interface is open to anyone who can reach it. The flaw gives no write access.

Who is affected

pip package composio <= 0.7.20 per the advisory data. The researcher's report tested v0.6.10 (commit 9be17a8) on the master branch, so the exact range is not firmly set. Only setups that run Composio's local API server are relevant.

pip show composio

Then check whether a process listens on the server port, such as 8000, with ss -ltnp.

composio

Ecosystem
PyPI
Affected
<= 0.7.20
Fixed in
No patched version yet
Check
pip show composio

How to fix it

No patched version is listed, and the report does not mention a fix commit. Watch the ComposioHQ repository and the advisory for a release.

Until then: do not run the Composio server on a non-local interface, keep it off shared hosts, and block its port with a firewall. Run it under an account with no access to SSH keys, cloud credentials or other secrets. Stop the server when you are not using it.

How to tell if you were hit

Check the server's access log for GET /api/download requests whose file value is an absolute path or contains .., such as paths to /etc, ~/.ssh or .env files. Look for connections to the server port from hosts that should not use it. If you find any, treat the files that the account could read as exposed and rotate the keys and tokens in them. Beam records the shell commands and file access of local agents, which can help show what ran next to the server.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Directory Traversal vulnerability in ComposioHQ v.0.7.20 allows a remote attacker to obtain sensitive information via the _download_file_or_dir function.

Questions

What does the attacker get from CVE-2025-56427?

Read access to any file the Composio server process can read, such as credentials and config files. The report describes no write access.

Is there a fixed version?

None is listed. The report does not mention a patch.

Why do the version numbers differ?

The advisory lists versions up to 0.7.20, while the researcher's report tested v0.6.10. Treat all releases up to 0.7.20 as affected.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology