CRITICAL · CVSS 3.1 10.0 EPSS 6.2% · 94th percentile CWE-306CWE-78CWE-942

CVE-2026-59726: ruflo MCP bridge allows unauthenticated remote code execution in default Docker Compose deployments

Published 2026-11-24 · Updated 2026-11-24 · Also known as GHSA-c4hm-4h84-2cf3

Summary

The ruflo MCP bridge allows unauthenticated remote code execution via exposed API endpoints in default Docker Compose deployments. System administrators must immediately firewall affected ports and rotate all stored API credentials.

Who is affected

Unauthenticated attackers on the network can access the /mcp endpoint to execute arbitrary terminal commands within the node container. This allows the exfiltration of environment-based API keys and the persistent poisoning of the AgentDB learning store, affecting any instance deployed with default network configurations.

Exploitability

With a CVSS base score of 10.0, the vulnerability is classified as critical due to the ease of remote, unauthenticated exploitation. While the EPSS score of 0.062 suggests a moderate probability of exploitation, there is no evidence of active exploitation documented in CISA KEV.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm ruflo >= 0, < 3.16.3 3.16.3 npm install [email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeChanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

FAQ

Is a redeploy sufficient to fix the security issue?

No. While updating to version 3.16.3 closes the RCE vector, it does not remove existing data poisoning in the AgentDB or malicious persistence in MongoDB; these must be audited and cleaned manually.

What is the primary technical cause of the RCE?

The flaw stems from the lack of authentication on the /mcp endpoint and a failure to enforce the terminal_execute tool blocklist outside of the autopilot flow.

Does this vulnerability affect all deployments?

It affects deployments using the default docker-compose configuration, which binds the bridge and MongoDB services to all network interfaces.

Original advisory description
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. The tool blocklist that mentions terminal_execute was enforced only in the autopilot flow. POST /mcp and POST /mcp/:group bypassed it. Fixed in ADR-166 Phase 1-3 (branch security/adr-166-mcp-bridge-rce, PR #2521): - Bind loopback by default; fail-closed on public-bind opt-in without MCP_AUTH_TOKEN - Bearer auth middleware (timingSafeEqual constant-time compare) - Server-side executeTool gate for terminal_execute (MCP_ENABLE_TERMINAL=true opt-in) - MongoDB --auth on by default; MONGO_INITDB_ROOT_PASSWORD required to boot - read_only container + tmpfs - CORS allowlist wiring - CI regression locks (static + runtime + compose defaults) Operators of any exposed instance MUST: 1. Firewall :3001 and :27017 immediately 2. Rotate OPENAI / GOOGLE / OPENROUTER / ANTHROPIC keys 3. Audit the AgentDB pattern store for injected agentdb_pattern-store entries; purge poisoned patterns. A patched redeploy alone does NOT undo poisoning. 4. Audit MongoDB for tampering Credit: [Eli Ainhorn](https://www.linkedin.com/in/eli-ainhorn), Senior AI Vulnerability Researcher @ [Noma Security](https://noma.security) Reviewed by Dragan Spiridonov (ADR-166 co-author).

References

Source records: GHSA-c4hm-4h84-2cf3 (OSV.dev) · EPSS by FIRST, 2026-11-24.