{"id":"CVE-2026-59726","aliases":["CVE-2026-59726","GHSA-c4hm-4h84-2cf3"],"related":[],"kind":"vulnerability","state":"published","title":"Ruflo: Unauthenticated RCE in MCP bridge default docker-compose deployment","summary":"Ruflo is an agent meta-harness for Claude Code and Codex. Prior to 3.16.3, ruflo's default docker-compose deployment exposed the MCP bridge POST /mcp and POST /mcp/:group endpoints without authentication, allowing an unauthenticated network attacker to invoke tools/call to terminal_execute, obtain a shell in the bridge container, read provider API keys, and poison AgentDB learning-store patterns. This issue is fixed in version 3.16.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Ruflo is an agent meta-harness for Claude Code and Codex. Prior to 3.16.3, ruflo's default docker-compose deployment exposed the MCP bridge POST /mcp and POST /mcp/:group endpoints without authentication, allowing an unauthenticated network attacker to invoke tools/call to terminal_execute, obtain a shell in the bridge container, read provider API keys, and poison AgentDB learning-store patterns. This issue is fixed in version 3.16.3.","source":"cvelist"},{"lang":"en","text":"The MCP bridge shipping in ruflo/docker-compose.yml exposed POST /mcp with no authentication. The docker-compose defaults bound the bridge and MongoDB to all interfaces. Combined, an unauthenticated network attacker could invoke tools/call → terminal_execute inside the bridge container, obtain a shell as node (uid 1000), read every provider API key from the container env, spawn attacker-controlled swarms on the victim's keys, and persist a poisoned pattern into the AgentDB learning store that steers future AI outputs for all users of the instance.\n\nThe tool blocklist that mentions terminal_execute was enforced only in the autopilot flow. POST /mcp and POST /mcp/:group bypassed it.\n\nFixed in ADR-166 Phase 1-3 (branch security/adr-166-mcp-bridge-rce, PR #2521):\n- Bind loopback by default; fail-closed on public-bind opt-in without MCP_AUTH_TOKEN\n- Bearer auth middleware (timingSafeEqual constant-time compare)\n- Server-side executeTool gate for terminal_execute (MCP_ENABLE_TERMINAL=true opt-in)\n- MongoDB --auth on by default; MONGO_INITDB_ROOT_PASSWORD required to boot\n- read_only container + tmpfs\n- CORS allowlist wiring\n- CI regression locks (static + runtime + compose defaults)\n\nOperators of any exposed instance MUST:\n1. Firewall :3001 and :27017 immediately\n2. Rotate OPENAI / GOOGLE / OPENROUTER / ANTHROPIC keys\n3. Audit the AgentDB pattern store for injected agentdb_pattern-store entries; purge poisoned patterns. A patched redeploy alone does NOT undo poisoning.\n4. Audit MongoDB for tampering\n\nCredit: [Eli Ainhorn](https://www.linkedin.com/in/eli-ainhorn), Senior AI Vulnerability Researcher @ [Noma Security](https://noma.security) \n\nReviewed by Dragan Spiridonov (ADR-166 co-author).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Ruflo es un meta-arnés de agente para Claude Code y Codex. Antes de la 3.16.3, el despliegue predeterminado de docker-compose de ruflo expuso los puntos finales POST /mcp y POST /mcp/:group del puente MCP sin autenticación, permitiendo a un atacante de red no autenticado invocar herramientas/llamar a terminal_execute, obtener un shell en el contenedor del puente, leer claves API del proveedor y envenenar patrones del almacén de aprendizaje de AgentDB. Este problema está solucionado en la versión 3.16.3.","source":"nvd"}],"published":"2026-07-09T17:31:20.627Z","modified":"2026-11-24T21:15:05.792Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"}],"cwes":["CWE-78","CWE-306","CWE-942"],"affected":[{"ranges":[{"version":"< 3.16.3","status":"affected"}],"vendor":"ruvnet","product":"ruflo","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.16.3"}],"ecosystem":"npm","package":"ruflo","purl":"pkg:npm/ruflo","source":"ghsa"}],"references":[{"url":"https://github.com/ruvnet/ruflo/security/advisories/GHSA-c4hm-4h84-2cf3","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ruvnet/ruflo/pull/2521","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ruvnet/ruflo/commit/d00a0a40cd8bdbca877ac7f675f416bdc69accd1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ruvnet/ruflo/releases/tag/v3.16.3","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59726","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ruvnet/ruflo","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/ruvnet/ruflo/blob/main/v3/docs/adr/ADR-166-mcp-bridge-unauthenticated-rce-remediation.md","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-07-09T18:43:19.456Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-59726","url":"https://www.cve.org/CVERecord?id=CVE-2026-59726","licence":"CVE Terms of Use","modified":"2026-07-09T18:43:24.749Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c4hm-4h84-2cf3","url":"https://github.com/advisories/GHSA-c4hm-4h84-2cf3","licence":"CC-BY-4.0","modified":"2026-11-24T21:15:05.792Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-59726","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59726","licence":"Public domain","modified":"2026-10-25T17:10:00.197Z"}],"updatedAt":"2026-11-25T22:59:27.528Z","epss":{"score":0.36425,"percentile":0.98521,"date":"2026-12-01T12:00:22.000Z"}}