> ## Content Index
> Fetch the complete content index at: https://stackurity.ai/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# Ruflo CVE-2026-59726: unauthenticated bridge RCE, upgrade to 3.16.3
- URL: https://stackurity.ai/blog/ruflo-cve-2026-59726-unauthenticated-mcp-bridge-rce-upgrade-3-16-3/
- Published: 2026-11-26T01:35:02.000Z
- Updated: 2026-11-26T01:35:02.000Z
- Description: Ruflo before 3.16.3 exposed an MCP bridge with no login in its default Docker Compose setup. Who is affected, how to check and how to fix it.
- Author: Stackurity Research Team
- Tags: Open Source Libraries, #deep-dive

## TL;DR

- **What:** the MCP bridge in ruflo's default Docker Compose setup accepted tool calls with no authentication, including one that runs shell commands.
- **Impact:** an attacker on the network can get a shell in the bridge container, read the AI provider keys in its environment and plant poisoned patterns in the learning store.
- **Severity:** a CVSS v3.1 score of 10 from GitHub (CVE-2026-59726, GHSA-c4hm-4h84-2cf3).
- **Exploited:** we have no record that it is listed as exploited, but the advisory is public and the flaw needs no login.
- **Fix:** upgrade ruflo to 3.16.3, firewall the exposed ports, rotate every provider key and audit the pattern store.

## What the vulnerability is

Ruflo is an npm tool that coordinates AI coding agents such as Claude Code and Codex. Its Docker Compose file starts an MCP bridge, a small web service that lets AI tools call functions on the host. In releases before 3.16.3 the bridge let anyone call its `POST /mcp` and `POST /mcp/:group` endpoints, with no login required. The GitHub advisory added that the Compose defaults bound both the bridge and the MongoDB database to all network interfaces, so the two were reachable by anyone who could route to the machine.

One of the tools behind the bridge, `terminal_execute`, runs a command. A blocklist meant to stop it was applied only in the autopilot flow, so direct calls to the endpoints skipped it. The result is a classic missing-authentication and command-injection pair, tracked as CWE-306 and CWE-78\. The GitHub advisory was published on November 24, 2026 and NVD lists the same flaw as [CVE-2026-59726](https://nvd.nist.gov/vuln/detail/CVE-2026-59726).

## Why it matters now

This is not only a shell in a container. The advisory says an attacker can collect the provider API keys stored in the container's environment variables, start swarms of agents on the victim's keys and write a poisoned pattern into the learning store that steers future AI output for everyone who uses the instance. Stolen keys keep working after the container is patched, and a poisoned store keeps misleading people after the bug is gone.

Teams that try AI agent tooling often run it quickly from a sample Compose file on a developer machine or a spare cloud server, and nobody adds it to an inventory. That is exactly the kind of software that stays exposed. If you track libraries by what is actually deployed, [Stackurity's AI assistant tools](https://stackurity.ai/docs/ai-assistants) let you ask which assets carry a given package, and the [comparison with Snyk for deployed apps](https://stackurity.ai/compare/snyk-alternative) explains how that differs from scanning only source repositories. For a related pattern, see our post on [AI agents hunting API keys in exposed LiteLLM and Dify apps](https://stackurity.ai/blog/ai-agents-hunt-api-keys-in-litellm-dify-and-one-api/).

## Am I affected?

You are affected if you run a ruflo release before 3.16.3 from its default Docker Compose deployment, and more so if the bridge or the database is reachable from outside the host. The advisory lists the npm package as ruflo and the fixed release as 3.16.3\. Compose installs are the documented risk, so a copy used only as a local command line tool is a different case, but upgrade it anyway.

To check one machine by hand:

- Find the project folder and look at the version: `npm ls ruflo` in a project that depends on it, or the version in the folder's `package.json`.
- List running containers and their published ports with `docker ps` and look for the bridge and MongoDB.
- Open the Compose file and check whether the ports are published on all interfaces or only on loopback.
- From another machine on the network, try to reach the bridge. If it answers, assume it is exposed.

Version numbers are only part of the picture. A container image built from an older checkout keeps its old code until you rebuild it, so check the image as well as the folder.

## How to fix CVE-2026-59726

1. **Cut the exposure first.** Firewall ports 3001 and 27017 immediately, as the advisory says, so neither the bridge nor the database is reachable from outside the host.
2. **Upgrade ruflo to 3.16.3 or later.** The fix binds the bridge to loopback by default, refuses a public bind without an authentication token, adds bearer authentication and makes the terminal tool opt-in. Rebuild and redeploy the containers, then confirm the new version is running.
3. **Rotate every provider key** that was in the container environment, for example the OpenAI, Google, OpenRouter and Anthropic keys the advisory names. Revoke the old keys at each provider, not just in your configuration.
4. **Audit the learning store.** Look for injected pattern-store entries and purge them. Redeploying a fixed version does not remove entries that were already planted.
5. **Audit MongoDB for tampering.** The database was bound to all interfaces, and the fixed Compose file turns authentication on and requires a root password, so set one and check the data you had before.

If you cannot upgrade today, keep the ports firewalled and take the instance off the network. The vendor advisory on GitHub is the authority for the full list of changes: [GHSA-c4hm-4h84-2cf3](https://github.com/advisories/GHSA-c4hm-4h84-2cf3).

## How to check with Stackurity

Stackurity keeps one live inventory of what runs on your servers, in deployed applications, repositories and container images. It reads npm lockfiles and the libraries deployed applications load, and it matches them against advisories every hour. A ruflo release before 3.16.3 therefore appears as a vulnerable npm component on every repository or application that carries it, with the upgrade that clears it. After you upgrade, Stackurity checks again and records whether the issue is really gone.

Rotating keys is the part people forget. The agent and `stackurity scan` find keys, tokens and passwords written in files, and keys with their own format are recognised for OpenAI, Anthropic and Google among others. Each leaked key gets an owner and a state, so you can see which keys are still waiting for rotation. See [how leaked key findings work](https://stackurity.ai/docs/leaked-keys).

Be clear about the limit: Stackurity does not check whether your Compose file publishes a port to the internet. That stays a manual check, as above. [Start a free trial](https://app.stackurity.dev/signup?utm%5Fsource=blog&utm%5Fmedium=referral&utm%5Fcampaign=open-source-libraries&utm%5Fcontent=ruflo-cve-2026-59726-unauthenticated-mcp-bridge-rce-upgrade-3-16-3) to see which of your repositories and servers carry the vulnerable release.

## FAQ

### Which ruflo versions are affected by CVE-2026-59726?

Every ruflo release before 3.16.3 that was started from its default Docker Compose file. The fixed release is 3.16.3, so upgrade to that version or later.

### Is CVE-2026-59726 exploited in the wild?

We have no record that it is listed as exploited, so we do not claim it is. The flaw needs no login and the advisory is public, so treat any exposed instance as urgent.

### Does upgrading to 3.16.3 undo an attack that already happened?

No. The advisory says that redeploying a fixed version does not remove entries already planted in the learning store. Rotate the provider keys, audit the pattern store and check the database for tampering.

### How do I know if my ruflo bridge is reachable from the network?

Check which ports the Compose file publishes and which interfaces they bind to, then test from another machine. If the bridge answers from outside the host, firewall it first and upgrade second.

### Does Stackurity find ruflo in my projects?

Stackurity reads npm lockfiles in repositories and the libraries deployed applications load, so a ruflo release before 3.16.3 shows up as a vulnerable npm component. It does not see how a Compose file exposes ports, so that part stays a manual check.

Sources: [NIST National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-59726), [GitHub Advisory Database](https://github.com/advisories/GHSA-c4hm-4h84-2cf3), [Stackurity product facts](https://stackurity.ai/llms.txt).