CVE-2026-59726: Ruflo Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-c4hm-4h84-2cf3
CVSS 10.0
CWE-78 CWE-942 CWE-306
Published
Advisory Summary

CVE-2026-59726 is a CRITICAL (CVSS 10.0) remote code execution vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Ruflo libraries in the npm ecosystem. The issue involves ruflo mcp bridge allows unauthenticated remote code execution in default docker compose deployments. Remediation is available by upgrading affected packages to version 3.16.3.

CVE-2026-59726 at a Glance

CVE Identifier CVE-2026-59726
GHSA Identifier GHSA-c4hm-4h84-2cf3
Severity CRITICAL
CVSS v3.1 Base Score 10.0
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Ruflo
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 10.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-59726

To remediate this vulnerability, upgrade all affected Ruflo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ruflo fixed: 3.16.3
npm install ruflo@3.16.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls ruflo

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-59726, inspect your project dependencies using npm:

npm ls ruflo

Analyze the terminal output to locate any version of Ruflo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.16.3), your application is affected.

Note: The npm ls ruflo command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Ruflo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2026-59726 Affected Ruflo Versions

1 component(s)
Fixed Versions:
3.16.3
Product / Package Ecosystem Affected Versions Fixed Version
ruflo
npm
< 3.16.3
3.16.3

References

Frequently Asked Questions

What is CVE-2026-59726?
CVE-2026-59726 is a security vulnerability in Ruflo involving ruflo MCP bridge allows unauthenticated remote code execution in default Docker Compose deployments under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Ruflo versions are affected?
Affected versions include releases prior to 3.16.3 across affected packages: ruflo.
What version fixes CVE-2026-59726?
Upgrading to 3.16.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ruflo affected?
Yes, ruflo is affected in releases prior to 3.16.3. Upgrade your dependency to 3.16.3 or later.
What is the CVSS score of CVE-2026-59726?
CVE-2026-59726 has a CVSS v3.1 base score of 10.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-59726?
CVE-2026-59726 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check npm dependencies for CVE-2026-59726?
Run the dependency tree command: 'npm ls ruflo'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c4hm-4h84-2cf3",
  "modified" : "2026-11-24T21:01:10Z",
  "published" : "2026-11-24T21:01:10Z",
  "aliases" : [ "CVE-2026-59726" ],
  "summary" : "ruflo MCP bridge allows unauthenticated remote code execution in default Docker Compose deployments",
  "details" : "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).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "ruflo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.16.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ruvnet/ruflo/security/advisories/GHSA-c4hm-4h84-2cf3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-59726"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ruvnet/ruflo/pull/2521"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ruvnet/ruflo/commit/d00a0a40cd8bdbca877ac7f675f416bdc69accd1"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ruvnet/ruflo"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ruvnet/ruflo/blob/main/v3/docs/adr/ADR-166-mcp-bridge-unauthenticated-rce-remediation.md"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ruvnet/ruflo/releases/tag/v3.16.3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-306", "CWE-78", "CWE-942" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-24T21:01:10Z",
    "nvd_published_at" : "2026-07-09T18:16:57Z"
  }
}