Critical · 10.0 Node.js & npm GHSA-c4hm-4h84-2cf3 CVE-2026-59726
Critical Unauthenticated RCE in ruflo MCP Bridge Default Docker Compose Deployments
A critical vulnerability in ruflo's default Docker Compose setup allows unauthenticated attackers to execute arbitrary commands, steal API keys, and poison the AI learning store. Fixed in version 3.16.3.
By PatchBriefing · ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A critical vulnerability has been disclosed affecting ruflo's default Docker Compose deployment. The flaw allows an unauthenticated remote attacker to execute arbitrary commands inside the MCP bridge container, exposing API keys, hijacking AI agent sessions, and corrupting the learning store used to steer future AI outputs. A fix is available in version 3.16.3.
What happened
The MCP bridge included in ruflo's default docker-compose.yml exposed the endpoint POST /mcp without any authentication. The default Docker Compose configuration also bound the bridge and the MongoDB database to all network interfaces rather than restricting them to localhost. Combined, these conditions allowed an unauthenticated network attacker to invoke the bridge's tools/call interface to trigger terminal_execute, obtaining a shell inside the container as the node user (uid 1000).
Technical cause
The vulnerability is classified as CWE-78, Improper Neutralization of Special Elements used in an OS Command. A tool blocklist referencing terminal_execute existed, but it was enforced only within the application's autopilot flow. The POST /mcp and POST /mcp/:group endpoints bypassed this blocklist entirely, meaning the restriction provided no real protection against direct API calls to those routes.
Why it matters
Because the bridge and MongoDB were both reachable from any network interface by default, and the /mcp endpoint required no authentication, an attacker could gain full command execution with no prior access or user interaction. Once inside the container, an attacker could read every provider API key present in the container environment, use those keys to spawn attacker-controlled AI agent swarms billed to the victim, and persist a poisoned pattern into the AgentDB learning store. Such poisoned patterns can steer future AI outputs for all users of the affected instance, extending the impact well beyond the initial compromise.
Who is affected
Any operator running ruflo versions before 3.16.3 using the default Docker Compose deployment, where the MCP bridge and MongoDB were exposed on all network interfaces and the bridge was reachable without authentication, is affected.
Affected versions
ruflo versions before 3.16.3 are affected. The issue is fixed in version 3.16.3.
Fixes and mitigation
Version 3.16.3 addresses the issue through a set of changes: the bridge now binds to loopback by default and fails closed if public binding is opted into without an authentication token being configured; a bearer authentication middleware using a constant-time comparison was added; a server-side gate was added around terminal_execute requiring an explicit opt-in; MongoDB now requires authentication by default and a root password to start; the container was made read-only with a tmpfs; a CORS allowlist was introduced; and regression tests were added to lock these defaults in place going forward.
Recommended action
Operators of any exposed ruflo instance should treat this as urgent and take the following steps: (1) immediately firewall the bridge port 3001 and the MongoDB port 27017 from public access; (2) rotate all provider API keys (OpenAI, Google, OpenRouter, Anthropic) that may have been present in the container environment; (3) audit the AgentDB pattern store for injected or anomalous entries and purge any poisoned patterns — deploying the patched version alone does not remove existing poisoning; and (4) audit MongoDB for signs of tampering. Upgrading to version 3.16.3 is necessary but not sufficient on its own; the mitigation and audit steps above must also be performed.
PatchBriefing score
10.0 / 10 · Critical
Official CVSS: 10.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS 0.0624 (94 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- ruflo < 3.16.3
- vulnerable
- ruflo ≥ 0 < 3.16.3
- vulnerable
- ≥ 3.16.3
- patched
Reported fixes
Version 3.16.3 addresses the issue through a set of changes: the bridge now binds to loopback by default and fails closed if public binding is opted into without an authentication token being configured; a bearer authentication middleware using a constant-time comparison was added; a server-side gate was added around terminal_execute requiring an explicit opt-in; MongoDB now requires authentication by default and a root password to start; the container was made read-only with a tmpfs; a CORS allowlist was introduced; and regression tests were added to lock these defaults in place going forward.
How this was built
1 source records were collected, matched and used to prepare the report above.
-
GitHub Advisory Database database
Revision history
- Published
- Generated
- Published
- Early Warning