CVE-2026-59726 is a critical-severity (CVSS 10) OS Command Injection vulnerability in ruflo. 1 public exploit or proof-of-concept reference is indexed, so weaponization risk is real. A fix is available for ruflo — see the affected versions and patch details below.
Ruflo: Unauthenticated RCE in MCP bridge default docker-compose deployment
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- A successful exploit gives an attacker total control of the affected component, not partial access.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-59726.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
rufloReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm packages — download data is not available via public APIs for these ecosystems.
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:
- Firewall :3001 and :27017 immediately
- Rotate OPENAI / GOOGLE / OPENROUTER / ANTHROPIC keys
- Audit the AgentDB pattern store for injected agentdb_pattern-store entries; purge poisoned patterns. A patched redeploy alone does NOT undo poisoning.
- Audit MongoDB for tampering
Credit: Eli Ainhorn, Senior AI Vulnerability Researcher @ Noma Security
Reviewed by Dragan Spiridonov (ADR-166 co-author).
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | ruflo | all versions | 3.16.3npm install ruflo@3.16.3 |
Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Ruflo MCP Bridge 3.16.2 - Remote Code Execution (RCE)
by Liliane Zukerman · Nov 11, 2026
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for ruflo, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update ruflo to 3.16.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-59726 is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
How to detect CVE-2026-59726
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2026-59726 -u https://target- Template
- ruflo MCP Bridge - Unauthenticated RCE via terminal_execute
- Severity
- critical
- Impact
- Unauthenticated remote code execution. An attacker can read provider API keys (OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.) from the container environment, spawn attacker-controlled swarms on victim keys, and persist poisoned patterns into AgentDB.
- Remediation
- Upgrade ruflo to version 3.16.3 or later which adds DANGEROUS_TOOLS gate in executeTool(), bearer auth middleware (MCP_AUTH_TOKEN), loopback bind by default (BIND_HOST=127.0.0.1), and MCP_ENABLE_TERMINAL opt-in. As interim mitigation, firewall port 3001 and set MCP_AUTH_TOKEN in docker-compose.yml.
Template by ProjectDiscovery nuclei-templates (DhiyaneshDk), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2026-59726 in your dependencies?
Find it across npm, including transitive dependencies.