Skip to content
DayZeroHub
Critical CVSS 10GHSA-c4hm-4h84-2cf3CVE-2026-59726

ruflo: unauthenticated remote code execution in the MCP bridge under default Docker Compose deployments

ruflo

Summary

The MCP bridge shipped in ruflo's docker-compose exposed POST /mcp with no authentication, allowing a network attacker to run commands in the container. Fixed in version 3.16.3 (CVE-2026-59726, GHSA-c4hm-4h84-2cf3; CVSS 10.0, critical).

What happened

The MCP bridge shipped in ruflo/docker-compose.yml exposed POST /mcp without authentication, and the default docker-compose settings bound both the bridge and MongoDB to all network interfaces. According to the vendor's description, an unauthenticated network attacker could invoke tools/call → terminal_execute inside the bridge container and obtain a shell as the node user (uid 1000), read the provider API keys present in the container environment, spawn attacker-controlled swarms using the victim's keys, and inject a poisoned pattern into the AgentDB learning store that would steer future AI outputs for all users of the instance. The tool blocklist mentioning terminal_execute was enforced only in the autopilot flow; POST /mcp and POST /mcp/:group bypassed it. The associated weaknesses are CWE-78, CWE-306 and CWE-942. CVSS 3.1 score of 10.0 (vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H), assigned by GHSA; critical severity.

Why it matters

Network-reachable installations using the default Docker Compose configuration were exposed without needing any credentials, with possible access to provider API keys and manipulation of the instance's AI outputs. The vendor warns that redeploying a patched version does not by itself undo any poisoning of the pattern store. The source does not state that the vulnerability is being actively exploited (it is not listed in CISA's KEV catalog) and does not describe it as a zero-day.

Affected products and versions

npm package ruflo: versions < 3.16.3 (fixed in 3.16.3). The source does not state a vendor or a starting version for the affected range.

ProductVersionsFixed in
ruflo< 3.16.33.16.3

Action recommended by the source

The vendor recommends upgrading to version 3.16.3. The fix (ADR-166, phases 1-3, PR #2521) includes: loopback binding by default, failing closed if public binding is enabled without MCP_AUTH_TOKEN; Bearer authentication with constant-time comparison; a server-side gate for terminal_execute (requires opting in with MCP_ENABLE_TERMINAL=true); MongoDB with --auth on by default and MONGO_INITDB_ROOT_PASSWORD required to boot; a read_only container with tmpfs; a CORS allowlist; and CI regression tests. The vendor states that operators of any exposed instance MUST: 1) firewall ports 3001 and 27017 immediately; 2) rotate the OPENAI, GOOGLE, OPENROUTER and ANTHROPIC keys; 3) audit the AgentDB pattern store for injected agentdb_pattern-store entries and purge poisoned patterns; 4) audit MongoDB for tampering. Credit: Eli Ainhorn (Noma Security). References: https://github.com/advisories/GHSA-c4hm-4h84-2cf3 and https://github.com/ruvnet/ruflo/releases/tag/v3.16.3

Fixed in: 3.16.3

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-78, CWE-306, CWE-942

Relevant change history

  1. Published

    Advisory published.

Summary written with AI assistance from the source data. See the sources and references for complete information. View sources