Critical Unauthenticated RCE in Ruflo MCP Bridge Exposes Keys and AgentDB
Emerging Technology Risk · 2 sources · Updated 5mo ago · First seen Jul 9, 2026

ruvnet fixed a critical unauthenticated remote code execution flaw in Ruflo's default docker-compose deployment, tracked as CVE-2026-59726 and GHSA-c4hm-4h84-2cf3. In versions before 3.16.3, the MCP bridge exposed POST /mcp and POST /mcp/:group without authentication, allowing a network attacker to invoke terminal execution and gain a shell in the bridge container. The issue carries a CVSS 9.8 rating and was mapped to CWE-78, CWE-306, and CWE-942.
The vendor said successful exploitation could expose provider API keys, let attackers spawn attacker-controlled swarms, and poison the AgentDB learning store to influence future AI outputs; the default deployment also exposed MongoDB on all interfaces. Ruflo v3.16.3 mitigates the risk by binding the MCP bridge to 127.0.0.1 by default, requiring MCP_AUTH_TOKEN for public binding, adding bearer authentication with constant-time comparison, gating terminal execution behind MCP_ENABLE_TERMINAL=true, making the bridge filesystem read-only, and enabling MongoDB authentication with a required MONGO_INITDB_ROOT_PASSWORD. Operators of previously exposed instances were urged to firewall ports 3001 and 27017, rotate provider API keys, and audit both AgentDB and MongoDB because redeployment alone may not remove prior tampering or poisoning.


