Rightshold™ Sign up
Rightshold is live — the trust layer for AI agents.Launched November 23, 2026.Evidence Delivery$99 / 30 days · Offers are open — review the exact terms and the payment options shown on the service page before accepting.No token, everany ‘Rightshold token’ is not ours

Answers · MCP security

We self-host ruflo (the agent orchestration tool also published on npm as claude-flow) with its docker-compose file on a cloud server. I saw a critical advisory about its MCP bridge. Could someone have run commands on our server, which version fixes it, and is upgrading enough?

Last updated

TL;DR: Yes, if you ran the default docker-compose before ruflo 3.16.3 on a reachable address, and no, upgrading alone isn't enough. CVE-2026-59726 (GHSA-c4hm-4h84-2cf3, CVSS 10 in GitHub's database, added to it November 24, 2026) says the MCP bridge in ruflo's docker-compose.yml took POST /mcp with no authentication, and the compose file bound the bridge (port 3001) and MongoDB (port 27017, no password) to all interfaces. Anyone who could reach the port could call tools/call with terminal_execute, get a shell in the bridge container, read every provider API key from its environment, start agent swarms on your keys and write a poisoned pattern into the AgentDB learning store that steers later AI output for every user of the instance. The blocklist that named terminal_execute only ran in the autopilot flow. Version 3.16.3 (July 1, 2026) binds to localhost by default, requires a bearer token for public binding, gates terminal_execute on every path and requires a MongoDB password; npm listed 3.80.11 as latest on November 28. The maintainers say a patched redeploy does NOT undo poisoning: firewall, rotate keys and audit the pattern store and database too.

What should I check, step by step?

1. Check the version: ruflo before 3.16.3 is affected (the claude-flow packages were published at 3.16.3 the same day). npm listed 3.80.11 as the latest on November 28, 2026.

  1. If an older default docker-compose ever ran on a public or shared network, firewall ports 3001 and 27017 now, before anything else.
  2. Rotate the OpenAI, Google, OpenRouter and Anthropic keys that were in the bridge's environment, and check those providers' usage pages for runs you didn't start.
  3. Audit the AgentDB pattern store for entries you didn't write, especially ones dressed up as 'compliance' or 'best practice' guidance, and purge them. Keep a copy first, so you can show later what was there.
  4. Audit MongoDB for changed or exported conversations and settings; it had no password and was reachable without the RCE.
  5. After upgrading, set MONGO_INITDB_ROOT_PASSWORD (the new compose file refuses to start without it). Only bind the bridge publicly with MCP_BIND_HOST plus MCP_AUTH_TOKEN, and leave MCP_ENABLE_TERMINAL off unless you need it.
  6. Remember the fix didn't scope which API keys each spawned backend sees; that per-backend allowlist was deferred, so keep only the keys you use in the environment.

What did CVE-2026-59726 in ruflo's MCP bridge allow?

ruflo's repository advisory and ADR-166 describe the setup shipped in ruflo/docker-compose.yml. The MCP bridge answered POST /mcp and POST /mcp/:group with no authentication, only JSON parsing and wildcard CORS in front. The compose file published the bridge on port 3001 and MongoDB on 27017 on all interfaces, and MongoDB had no root password. On a cloud server that meant the internet could reach both; the ADR says the disclosed report cited a confirmed exposed instance on AWS EC2.

Why doesn't upgrading ruflo undo a poisoned AgentDB pattern store?

Step five of the chain is the one that outlives the fix. The AgentDB pattern store is where ruflo keeps learned patterns that shape later output. One unauthenticated write there persists and steers future AI answers for every user of the instance; the ADR's example is 'compliance' or 'best practice' patterns that make generated code call out to an attacker. A new container image doesn't touch that data.

What did ruflo 3.16.3 change, and what do operators still have to do?

Pull request 2521 and the 3.16.3 release (July 1, 2026) make the bridge bind only to localhost by default and exit at boot if you ask for a public bind without MCP_AUTH_TOKEN; check a bearer token with a constant-time compare; gate terminal_execute inside executeTool on /mcp, /mcp/:group and autopilot alike, off unless MCP_ENABLE_TERMINAL=true; run MongoDB with authentication and refuse to start without MONGO_INITDB_ROOT_PASSWORD; make the bridge's root filesystem read-only; and honour a CORS allowlist. CI checks now lock those defaults in.

How do I ask Rightshold about this (free, no key)?

Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “Before we bring our ruflo instance back after the CVE-2026-59726 cleanup, record a receipt for the AgentDB pattern store export we audited and the provider keys we rotated, by hash.”

One-click setup

{
  "tool": "record_action",
  "arguments": {
    "action_type": "security.incident_cleanup",
    "outcome": "success",
    "occurred_at": "2026-11-28T16:00:00Z",
    "client_event_id": "ruflo:cve-2026-59726:cleanup",
    "summary": "ruflo upgraded to 3.80.11; ports 3001/27017 firewalled; OpenAI, Anthropic, Google and OpenRouter keys rotated; AgentDB pattern store exported and audited, 3 unrecognised pattern entries purged; MongoDB audited",
    "action_sha256": "<sha256 of the pattern store export taken before the purge>"
  }
}

Rightshold isn't affiliated with ruflo, its maintainers or Noma Security. Details are from ruflo's repository advisory GHSA-c4hm-4h84-2cf3 and its GitHub advisory database entry (CVE-2026-59726), ADR-166 in the ruflo repository, pull request 2521 and the v3.16.3 release notes, with current versions from the npm registry, all read November 28, 2026. Advisories get updated; confirm fixed versions on the linked pages.

What are the sources?

Related

Not legal advice. JSON · Markdown · All answers

Get a free API key in one call

No card and no email needed. 100 free credits; the license and policy checks stay free without a key.

curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_...   # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
  -H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'