On this page (7 sections)
ruflo, an agent meta-harness for Claude Code and Codex, shipped a default Docker Compose setup whose MCP bridge accepted commands from anyone who could reach it on the network. The flaw is tracked as CVE-2026-59726 and carries the maximum CVSS score of 10.0. It is fixed in ruflo 3.16.3.
If you ran ruflo from its stock docker-compose.yml on a server, a cloud VM or any network others can reach, treat this as urgent. Upgrading is not enough on its own: the maintainers say an exposed instance may also need key rotation and a cleanup of poisoned data.
What happened
According to the GitHub advisory, the MCP bridge in ruflo's docker-compose.yml exposed POST /mcp with no authentication. The Compose defaults also bound the bridge and MongoDB to all network interfaces. Together, that meant a remote attacker with network access could call a terminal execution tool and get a shell inside the bridge container.
The advisory was published on GitHub on July 1, 2026, and the National Vulnerability Database published the CVE on July 9, 2026. The GitHub Advisory Database entry was reviewed and last updated on November 24, 2026. The issue is credited to Eli Ainhorn of Noma Security. Only one independent publisher covers this story so far, so most details below come from the maintainers' own advisory.
Technical details
The advisory describes several problems that combined into a critical issue:
- Missing authentication (CWE-306): POST /mcp and POST /mcp/:group accepted requests from anyone.
- A bypassed safety control: a blocklist mentioning the terminal_execute tool was enforced only in the autopilot flow. The two direct endpoints skipped it, so tools/call could reach terminal_execute (CWE-78 is also assigned to the CVE).
- Wide network exposure: the default Compose file bound the bridge and MongoDB to all interfaces rather than loopback. A permissive cross-domain policy (CWE-942) is also listed.
In plain terms, the service that lets an AI agent run tools was reachable like a public web page, and one of those tools was a command shell. The advisory says the shell runs as the node user (uid 1000) inside the bridge container, and that from there an attacker could read every provider API key in the container environment.
What an attacker could do
Per the advisory, an attacker could read every provider API key from the container environment, start attacker-controlled agent swarms on the victim's keys, and write a poisoned pattern into the AgentDB learning store. That last item matters because it can steer future AI outputs for all users of the instance, and the maintainers state that a patched redeploy alone does not undo it.
Who is affected
Affected versions are ruflo releases below 3.16.3 deployed with the default Docker Compose file. Exposure depends on reachability: a laptop with the ports reachable only from the local machine is far less exposed than a cloud VM with a public IP and no firewall. Placing the stack behind a VPN or a restrictive security group reduces exposure, but anyone who can reach those ports on that network could still use the unauthenticated endpoint.
Because the default also bound MongoDB to all interfaces, check that port too. The fix turns on MongoDB authentication by default and requires MONGO_INITDB_ROOT_PASSWORD to boot, so audit your database even if you believe it was not reachable.
How to check your exposure
Start by finding out whether ruflo is running and which ports are open. These checks are read-only.
This lists running containers and their published ports; run it on the Docker host and look for 3001 or 27017 mapped to 0.0.0.0 rather than 127.0.0.1:
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Ports}}'This shows which addresses are listening on the two ports named in the advisory. A listener on 0.0.0.0 or [::] means the service accepts connections from other machines:
ss -tlnp | grep -E ':(3001|27017)\b'If you installed ruflo from npm in a project, this prints the installed version. Anything below 3.16.3 is affected:
npm ls rufloAlso test from a different network whether ports 3001 and 27017 respond. If they do, assume the service was reachable by others for as long as it was deployed that way.
What to do now
- Firewall ports 3001 and 27017 immediately so they are not reachable from the internet or untrusted networks. The maintainers list this as the first required step.
- Upgrade ruflo to 3.16.3 or later and redeploy from the updated Compose file.
- Review the new defaults: the fix binds loopback by default, requires MCP_AUTH_TOKEN if you opt in to a public bind, enables MongoDB authentication and requires MONGO_INITDB_ROOT_PASSWORD to start.
- Keep terminal execution off unless you need it. In the fixed version it requires an explicit opt-in (MCP_ENABLE_TERMINAL=true).
- Rotate every OpenAI, Google, OpenRouter and Anthropic key that was present in the container environment, and check provider dashboards for unexpected usage.
- Audit the AgentDB pattern store for injected agentdb_pattern-store entries and purge poisoned patterns. The advisory states a patched redeploy alone does not undo poisoning.
- Audit MongoDB for tampering, and consider rotating any other secrets that lived in the same container environment.
Detection and monitoring
No public indicators of compromise are given in the sources, and exploitation is unconfirmed, so rely on behavior. Review web or reverse-proxy logs, if you have any, for POST requests to /mcp paths from unfamiliar addresses. Watch AI provider billing and usage for spikes or unexpected activity. Compare MongoDB users, databases and recent writes against what you expect.
This searches an access log for requests to the MCP endpoints; adjust the log path to your setup and look for requests from addresses you do not recognize:
grep -E 'POST /mcp' /path/to/access.logFor the longer term, an outside view helps catch accidental exposure. A security scan of a site you verify and monitoring for changes can help you notice unexpected public services on your hosts, but they cannot see inside containers or confirm that a database was not tampered with. For general recovery steps if you suspect a compromise, see website hacked: what to do.
Lessons for AI tooling deployments
This is a familiar pattern in a new setting: a convenient default (listen on all interfaces, no login) becomes dangerous once the stack lands on a shared or public server. AI agent tooling often holds valuable API keys and can run commands, so the bar for authentication should be at least as high as for an admin panel. Bind to loopback, put authentication or a VPN in front of anything that must be reachable, and avoid publishing a database port to the internet. For broader habits, see small business website security.
Sources
This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.
