Skip to content
← Blog · · df00tech

Critical RCE in ruflo's MCP Bridge: Default Docker Compose Deployments Exposed Unauthenticated Access to terminal_execute

breaking ghsa npm CVE-2026-59726

What happened

A GitHub Security Advisory (GHSA-c4hm-4h84-2cf3, CVE-2026-59726, CVSS 10.0) discloses that the MCP bridge shipped in ruflo's docker-compose.yml exposed POST /mcp with no authentication. The default compose configuration also bound both the bridge and MongoDB to all network interfaces rather than loopback.

According to the advisory, an unauthenticated network attacker could chain these issues to call tools/call → terminal_execute directly against the bridge container, obtaining a shell as the node user (uid 1000). A tool blocklist intended to restrict terminal_execute was only enforced in the autopilot flow. The POST /mcp and POST /mcp/:group endpoints bypassed it entirely.

Why it matters for defenders

Per the advisory, the impact chain from a single exposed instance is severe. Shell access lets an attacker read every provider API key (OpenAI, Google, OpenRouter, Anthropic) from the container environment, spawn attacker-controlled agent swarms billed to the victim's keys, and persist a poisoned pattern into the AgentDB learning store. That poisoning can steer future AI outputs for all users of that instance. The advisory notes that a patched redeploy alone does not undo this poisoning. The store itself must be audited and cleaned.

Any organization running ruflo via its default Docker Compose setup, especially on a host reachable from an untrusted network, should treat this as a high priority. The advisory lists exploit status as theoretical.

What defenders should watch for or do now

  • Immediately firewall ports 3001 (MCP bridge) and 27017 (MongoDB) from any untrusted network. The advisory calls this out as a required first step.
  • Rotate all provider API keys (OpenAI, Google, OpenRouter, Anthropic) that were present in the container environment of any exposed instance.
  • Audit the AgentDB pattern store for injected agentdb_pattern-store entries and purge anything that looks tampered with. Do not assume patching alone resolves compromise.
  • Audit MongoDB for unauthorized writes or configuration changes, particularly if it was reachable without --auth enabled.
  • At the network and host level, hunt for unexpected outbound connections or process spawns originating from the MCP bridge container, and for unusual POST /mcp or POST /mcp/:group request patterns in any available access logs.
  • Upgrade to a version incorporating the ADR-166 fixes: loopback-by-default binding, bearer-token auth with constant-time comparison, a server-side gate on terminal_execute requiring explicit opt-in, MongoDB auth required to boot, a read-only container filesystem, and CORS allowlisting.

Developing intel

This is a same-day critical advisory and the picture may evolve as more detail emerges, including whether any exploitation has occurred in the wild. The information above is based on the GitHub Security Advisory. Defenders running ruflo should review the full advisory and associated fix (branch security/adr-166-mcp-bridge-rce, PR #2521) directly: GHSA-c4hm-4h84-2cf3.

Get new detections in your inbox

New ATT&CK coverage plus CISA KEV / CVE detection rules, roughly weekly. No spam, unsubscribe anytime.