NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
📦
📦 npm
Not in CISA KEV
CRITICAL severity

CVE-2026-59726 — ruflo

CRITICALFix: ruvnet/ruflo@d00a0a4

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

Also known asGHSA-c4hm-4h84-2cf3
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
1 known
Exploitation data as of Nov 23, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

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

via FIRST.org ↗
6.2%probability of exploitation in next 30 days
Lower Risk+3.23%
Lower risk than most CVEs94th percentile — riskier than 94% of all scored CVEsHighest risk
0.00%2.66%5.32%7.97%0.5%3.0%3.0%6.2%Aug 26Nov 26Nov 26

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

1 pkg affected
📦ruflo

Real-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:

  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, Senior AI Vulnerability Researcher @ Noma Security

Reviewed by Dragan Spiridonov (ADR-166 co-author).

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
📦npmrufloall versions3.16.3npm install ruflo@3.16.3
Exploits & PoCs
1

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

EDB-52705remotepython

Ruflo MCP Bridge 3.16.2 - Remote Code Execution (RCE)

by Liliane Zukerman · Nov 11, 2026

Detection & mitigation playbook

Open-source dependency
  1. Detect

    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.

  2. 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.

  3. 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

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_exe
O3 Security · Impact-Aware SCA

Is CVE-2026-59726 in your dependencies?

Find it across npm, including transitive dependencies.

CVE-2026-59726: ruflo RCE — Fixed in 3.16.3