GitHub's advisory database lists CVE-2026-59726 (GHSA-c4hm-4h84-2cf3) as a critical, reviewed flaw in ruflo's MCP bridge: default docker-compose.yml exposed unauthenticated POST /mcp, reachable terminal_execute, and all-interface binds on ports 3001 and 27017. On November 24, 2026 GitHub marked the advisory Critical severity, CVSS 10.0. If you run ruflo, claude-flow, or a forked MCP bridge stack from that compose file on a shared server or cloud VM, upgrade to ruflo 3.16.3, block public access, rotate provider API keys, and audit AgentDB—redeploying alone does not remove AI output poisoning the reporter demonstrated.
| Question | Short answer |
|---|---|
| Am I affected? | Yes if you run ruflo < 3.16.3 with the default Docker MCP bridge reachable beyond localhost |
| Is there a fix? | ruflo 3.16.3 (release tag) per the advisory |
| Is it exploited? | PoC confirmed under coordinated disclosure; EPSS 6.244% on the advisory page |
| Does data leave my machine? | Attackers extract LLM keys from container env and exfil conversations from open MongoDB |
| What patching misses? | Poisoned AgentDB patterns and stolen keys need manual purge and rotation |
This post follows ADR-166, the GitHub advisory, and pull request #2521. It is separate from the earlier on shell interpolation in MCP tools—different package surface, same lesson that MCP plus shell equals host compromise.
What the advisory says
The GitHub-reviewed advisory (updated November 24, 2026) states:
- The MCP bridge in
ruflo/docker-compose.ymlexposedPOST /mcpwith no authentication. - Default compose bound the bridge and MongoDB to all interfaces.
- An unauthenticated network attacker could invoke
tools/call→terminal_executeinside the bridge container, obtain a shell asnode(uid 1000), read provider API keys from container environment, spawn attacker-controlled swarms on the victim's keys, and persist poisoned patterns into the AgentDB learning store that steers future AI outputs for all users of the instance.
The advisory credits Eli Ainhorn (Noma Security) and notes review by Dragan Spiridonov (ADR-166 co-author). CVSS v3.1 vector on the page: AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H — network, no auth, changed scope.
Affected npm package: ruflo versions < 3.16.3. Patched: 3.16.3.
Operators of any exposed instance must, per the advisory:
- Firewall :3001 and :27017 immediately.
- Rotate
OPENAI,GOOGLE,OPENROUTER, andANTHROPICkeys. - Audit AgentDB for injected
agentdb_pattern-storeentries; purge poisoned patterns (patched redeploy alone does not undo poisoning). - Audit MongoDB for tampering.
How the attack chain works
ADR-166 maps an eight-step proof of concept that only uses plain POST /mcp without credentials. The maintainer verified each claim statically against the shipping ruvocal MCP bridge (ruflo/src/ruvocal/mcp-bridge/index.js). Condensed sequence:
| Step | Attacker action | Why it works |
|---|---|---|
| 1 | Recon — initialize, tools/list | No inbound auth middleware on /mcp |
| 2 | RCE — ruflo__terminal_execute | Blocklist for terminal_execute applied only on autopilot, not POST /mcp |
| 3 | Steal keys — shell reads container env | Compose injects all provider keys; backends spawn with { ...process.env } |
| 4 | Abuse swarms — swarm_init, agent_spawn | Same unauthenticated tool surface |
| 5 | Poison AgentDB — agentdb_pattern-store | Malicious patterns persist into future model-guided outputs |
| 6 | Dump MongoDB — unauthenticated :27017 | Default compose published Mongo without auth on all interfaces |
| 7 | Persist — write preload beacon, kill PID 1 | restart: unless-stopped relaunches compromised container |
| 8 | Cleanup — wipe shell history | Hides interactive traces |
The false comfort detail matters for anyone who skimmed the repo: maintainers did list terminal_execute in an autopilot blocklist, but POST /mcp and POST /mcp/:group bypassed it. That is the same class of split enforcement we warn about in the MCP security practical guide—one code path looks safe while the HTTP transport stays wide open.
Step 5 is why incident response is not "pull the new image and go home." AgentDB pattern poisoning is an AI supply-chain persistence mechanism: one unauthenticated write can bias later codegen for every user on that instance until patterns are audited and removed.
What version 3.16.3 changes
Remediation is documented in ADR-166 and summarized on the advisory:
- Bind loopback by default; fail closed if an operator sets a public bind without
MCP_AUTH_TOKEN. - Bearer auth middleware with timing-safe compare when a token is configured.
- Server-side
executeToolgate forterminal_execute— off unlessMCP_ENABLE_TERMINAL=true(opt-in). - MongoDB
--authon by default;MONGO_INITDB_ROOT_PASSWORDrequired to boot. read_onlycontainer + tmpfs to block persistence writes like the PoC's/app/beacon.js.- CORS allowlist wiring and CI regression locks.
Public exposure becomes an explicit opt-in pattern: MCP_BIND_HOST=0.0.0.0 plus MCP_AUTH_TOKEN (generate with openssl rand -base64 32), typically via a separate docker-compose.public.yml—not the default file.
Who is affected
You are in scope if any of these match:
| Signal | Risk |
|---|---|
npm ls ruflo or global install shows < 3.16.3 on a host that runs the HTTP MCP bridge | Vulnerable code path |
docker compose up using stock ruflo/docker-compose.yml with "3001:3001" and "27017:27017" | Internet-reachable RCE + open DB |
| Claude Code / Codex on laptop only, no ruflo bridge container | Not this CVE—unless you also operate the compose stack elsewhere |
| Forks shipping the same bridge layout (e.g. claude-flow-family deployments) | Treat like ruflo until proven otherwise |
The npm package name is ruflo on the advisory. Downstream tooling that bundled older agentic-flow builds had separate command-injection fixes—check both if you run swarm MCP backends.
How to check versions and exposure
npm ls ruflo
npm ls -g ruflo claude-flow @claude-flow/cli
On the Docker host:
docker compose config | grep -E '3001|27017'
ss -tlnp | grep -E ':3001|:27017'
From a trusted machine, an unauthenticated POST /mcp that returns a full tools/list including terminal_execute on a non-loopback interface is a positive exposure signal—stop there and firewall before experimenting further.
Upgrade path:
npm install [email protected]
Pull the v3.16.3 release commit referenced on the advisory (d00a0a4) for container rebuilds.
What this means if you run AI coding agents
Most developers use vendor CLIs (Claude Code, Codex, Cursor) rather than a self-hosted ruflo swarm bridge. This CVE still matters when:
- Your platform team ships a shared "agent swarm" VM for internal codegen experiments.
- A coding agent's MCP config points at
http://your-dev-server:3001/mcpwithout TLS or auth—now a lateral movement bridge from any compromised laptop on the VLAN. - You evaluate open-source agent harnesses that advertise Docker one-command deploys without reading port mappings.
Concrete checks for agent leads:
- Inventory remote MCP URLs in
.mcp.json, Cursor, Claude, and Codex configs—the MCP server security checklist applies. - Ban unauthenticated HTTP MCP on RFC1918 or cloud security groups unless a token gate is proven in config.
- After upgrade, re-scan MCP entries with your review process (MCP security audit workflow).
- If agents ever received suggestions from a compromised ruflo instance, treat generated code as untrusted until pattern stores are audited—parallel to MCP rug pulls but persistence lives in AgentDB, not a swapped npm package.
Rotate keys even if logs look clean: the PoC exfiltrated env vars in step 3.
Operator incident response after exposure
The advisory's Phase 0 list is deliberately harsh because step 5 and step 7 survive a naive redeploy. If you operated a bridge that matched the default compose and was reachable from anything other than loopback, work through this checklist in order—still sourced from ADR-166 and the GitHub advisory:
- Stop ingress first. Remove security-group or
iptablesrules that published 3001 or 27017 before you rebuild images—an attacker may still be inside while youdocker pull. - Assume keys are burned. Create new provider keys in each console, update compose secrets, and invalidate old keys even when billing dashboards look normal—the PoC explicitly harvested
OPENAI,GOOGLE,OPENROUTER, andANTHROPICvariables. - Export and grep AgentDB pattern stores. Look for
agentdb_pattern-storewrites that reference compliance language, hidden callbacks, or instructions unrelated to your team's style. The advisory warns that malicious patterns steer later codegen for every user on the instance. - Dump Mongo for unexpected collections or users. Default compose ran Mongo 7 without credentials on all interfaces; step 6 of the chain needed no shell creativity once RCE was established.
- Rebuild from 3.16.3 tags, not
latestmemory. Pin[email protected]or newer in npm manifests and reference commitd00a0a4when auditing container digests. - Document which developer MCP configs pointed at the bridge. Any laptop that listed
http://internal:3001/mcptreated that host as a tool authority; after compromise, revalidate those JSON files the same way you would after MCP config poisoning.
For green-field deploys after patch, ADR-166's local-only contract is explicit: default compose should listen on 127.0.0.1 only, terminal_execute stays off unless MCP_ENABLE_TERMINAL=true, and public exposure requires MCP_AUTH_TOKEN plus a deliberate docker-compose.public.yml overlay—not edited defaults on a cloud SG wide open to 0.0.0.0/0.
What Beam can and cannot do here
Beam is local-first: it heuristically scans skill and MCP config files before you connect agents, flags risky launch patterns, and can deny selected PreToolUse commands for Claude Code and Codex when workspace policy is in enforce mode. That helps you catch obvious remote MCP endpoints and dangerous shell proposals on the workstation—see how Beam watches agents.
Beam does not sit in front of a remote ruflo bridge, does not authenticate your Docker compose, and does not audit AgentDB or MongoDB on a server. It is not a substitute for firewall rules, MCP_AUTH_TOKEN, or vendor patches. Use it to document what MCP URLs your coding agents use and to block destructive local commands while you remediate shared infrastructure.
How Beam handles MCP exposure on developer machines
When a teammate pastes http://10.0.0.42:3001/mcp into a project config, the risk is trust migration: the IDE agent inherits whatever tools that bridge exports, including shells. Beam's scan heuristics emphasize version pins, curl-pipe patterns, and over-broad env inheritance—the same classes of issues that made ruflo's compose defaults dangerous. Pair scanning with manual review for any HTTP MCP entry; stdio servers on localhost are a different threat model, as covered in Cursor MCP config poisoning.
Frequently asked questions
What is CVE-2026-59726?
It is a critical (CVSS 10.0) flaw in ruflo's MCP HTTP bridge when deployed with default docker-compose.yml: POST /mcp accepted tools/call with no authentication, terminal_execute was reachable on that path, and ports 3001 and 27017 bound to all interfaces. GitHub reviewed the advisory on November 24, 2026.
Which ruflo versions are affected?
npm package ruflo versions below 3.16.3 per GHSA-c4hm-4h84-2cf3. The issue is the MCP bridge Docker deployment and matching source, not every npx one-liner on a laptop.
What is the fixed version of ruflo?
Upgrade to ruflo 3.16.3 or newer from the v3.16.3 release tag. The fix ships ADR-166 Phase 1–3: loopback bind by default, Bearer auth when publicly bound, terminal_execute gated behind MCP_ENABLE_TERMINAL=true, and MongoDB auth defaults.
How do I check if I run a vulnerable ruflo stack?
Run npm ls ruflo and npm ls -g ruflo in environments that install it; inspect docker-compose port mappings for 3001:3001 and 27017:27017 without 127.0.0.1 scoping; and probe whether POST /mcp returns tools/list without a Bearer token on any non-loopback interface.
Is CVE-2026-59726 exploited in the wild?
The advisory and ADR-166 describe a coordinated disclosure with a full eight-step proof of concept confirmed by the reporter against a default deployment. GitHub lists EPSS 6.244% (94th percentile). Treat exposed default compose as compromised until audited.
Does patching to 3.16.3 undo AgentDB poisoning?
No. The advisory states attackers could write malicious agentdb_pattern-store entries that steer future AI outputs. Operators must audit and purge poisoned patterns and rotate LLM keys even after redeploying a patched image.
What should I do if my ruflo MCP bridge was internet-exposed?
Firewall :3001 and :27017 immediately, rotate OPENAI, GOOGLE, OPENROUTER, and ANTHROPIC keys in the compose environment, audit AgentDB and MongoDB for tampering, and redeploy with loopback bind plus MCP_AUTH_TOKEN if you must expose the bridge.
Does this affect Claude Code or Codex on my laptop only?
Not directly. It hits self-hosted ruflo or claude-flow MCP bridge stacks that mirror the shipping docker-compose topology. Local stdio MCP without that HTTP bridge is a different surface—but teams experimenting with swarm harnesses often run this compose on a shared dev VM.
Related reading
- MCP security practical guide
- MCP server security best practices
- MCP security audit for coding agents
- Cursor MCP config poisoning and RCE
- MCP Python SDK OAuth flaw CVE-2026-115563
Sources
- GitHub Advisory GHSA-c4hm-4h84-2cf3
- NVD CVE-2026-59726
- ADR-166 remediation document
- ruflo v3.16.3 release
- Pull request #2521
Advisory severity, version bounds, and ADR acceptance status are accurate as of November 24, 2026, per the cited primary sources.

