Unauthenticated code execution found in ruflo's MCP bridge
A GitHub advisory published on 24 November 2026 says default Docker Compose settings left an MCP endpoint open to anyone on the network.
By The Agentic Times ·

The ruflo MCP bridge shipped with an unauthenticated POST /mcp endpoint in its default Docker Compose configuration, allowing remote attackers to run arbitrary code inside the bridge container. The flaw, tracked as CVE-2026-59726, was disclosed in a GitHub security advisory published on 24 November 2026 and affects the npm package ruflo. The advisory rates the exposure as severe for any instance reachable from an untrusted network.
According to the advisory, the docker-compose defaults bound both the bridge and MongoDB to all network interfaces. Combined with the missing authentication, an attacker with network access could call the tools/call method to reach terminal_execute and obtain a shell as the node user, uid 1000. MCP, or Model Context Protocol, is the interface that lets AI agents call external tools.
The consequences listed go beyond a single container. The advisory says an attacker could read every provider API key from the container environment, spawn attacker-controlled agent swarms billed to the victim's keys, and write a poisoned pattern into the AgentDB learning store. That last step, the advisory says, steers future AI outputs for all users of the instance, not just the attacker.
A tool blocklist that names terminal_execute existed, but the advisory says it was enforced only in the autopilot flow. Both POST /mcp and POST /mcp/:group bypassed it, so the control did not apply to the exposed path.
Fixes landed under an internal change record described as ADR-166 Phase 1-3, on the branch security/adr-166-mcp-bridge-rce and in pull request #2521. The bridge now binds to loopback by default and fails closed if an operator opts into a public bind without setting MCP_AUTH_TOKEN. Bearer token authentication middleware was added, using a constant-time comparison. A server-side gate in executeTool now blocks terminal_execute unless MCP_ENABLE_TERMINAL is explicitly set to true.
The container hardening work is broader than the single endpoint. MongoDB authentication is on by default, and the container will not boot without MONGO_INITDB_ROOT_PASSWORD. The container is now read-only with tmpfs, CORS has an allowlist, and continuous integration regression locks cover static checks, runtime behaviour and the compose defaults themselves.
The advisory sets out four steps that operators of exposed instances must take. Firewall ports 3001 and 27017 immediately. Rotate OpenAI, Google, OpenRouter and Anthropic keys. Audit the AgentDB pattern store for injected agentdb_pattern-store entries and purge poisoned patterns. Audit MongoDB for tampering.
The third point carries a warning that applies to anyone planning a quick upgrade. The advisory states plainly that a patched redeploy alone does not undo poisoning. Because the injected patterns live in the learning store rather than in the application code, replacing the container leaves the tainted data in place, and the advisory says those patterns continue to influence outputs for every user of the instance.
The advisory credits Eli Ainhorn, a senior AI vulnerability researcher at Noma Security, with the finding. No information was published about whether the flaw was exploited in the wild before the fix.
Sources
- github.comhttps://github.com/advisories/GHSA-c4hm-4h84-2cf3
