{
  "schema": "aidefend-secureflow-metadata-v1",
  "flow_id": "aidefend-research-sf0067-flowise-custommcp-configuration-code-execution",
  "title": "Flowise CustomMCP: Configuration Text Becomes Server Code",
  "subtitle": "Parse tool configuration as data rather than evaluating it as JavaScript.",
  "summary": "Flowise builds AI workflows and connects external tools through MCP. CVE-2025-59528 lets a reachable CustomMCP configuration handler evaluate supplied text with the Node.js Function constructor. SonicWall reported exploitation in 2026. Flowise 3.0.6 replaced that evaluation with data parsing; a restricted prompt does not repair the server-side configuration boundary.",
  "reviewed": true,
  "import_status": "curated-research",
  "ai_layers": [
    "autonomous-agents"
  ],
  "risk_impact": [
    "system-compromise-rce"
  ],
  "affected_components": [
    "Flowise CustomMCP",
    "Node.js Function constructor",
    "mcpServerConfig"
  ],
  "source_research": {
    "provider": "SonicWall Capture Labs",
    "primary_url": "https://www.sonicwall.com/blog/flowiseai-custom-mcp-node-remote-code-execution-",
    "published": "2026-02-06",
    "note": "Source-grounded AIDEFEND curation. ATLAS annotations describe the supported mechanism and do not establish an official ATLAS case or unreported malicious intent."
  },
  "attack_steps": [
    {
      "id": "submit-config",
      "title": "Submit Attacker-Controlled MCP Configuration",
      "zhTitle": "提交攻擊者控制的 MCP 設定",
      "summary": "A caller able to reach /api/v1/node-load-method/customMCP supplies mcpServerConfig. Authentication exposure depends on the deployment.",
      "zhSummary": "可存取 /api/v1/node-load-method/customMCP 的呼叫者提交 mcpServerConfig；是否能未登入存取，取決於實際部署。",
      "tactic": "AML.TA0004",
      "technique": "AML.T0049",
      "layout": {
        "x": -720,
        "y": 0
      }
    },
    {
      "id": "substitute-config-text",
      "title": "Pass Configuration through Variable Substitution",
      "zhTitle": "設定文字經過變數代換",
      "summary": "The CustomMCP path processes supplied configuration text through substituteVariablesInString and convertToValidJSONString.",
      "zhSummary": "CustomMCP 路徑將傳入設定文字交給 substituteVariablesInString 與 convertToValidJSONString 處理。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": -240,
        "y": 0
      }
    },
    {
      "id": "evaluate-config-as-code",
      "title": "Evaluate the Text with Function",
      "zhTitle": "使用 Function 執行設定文字",
      "summary": "The affected implementation evaluates configuration as JavaScript rather than only parsing data. This occurs in server code, without requiring a model to follow a malicious prompt.",
      "zhSummary": "受影響實作把設定當成 JavaScript 執行，而不是只解析資料。動作發生在伺服器程式碼，不需要模型服從惡意提示。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 240,
        "y": 0
      }
    },
    {
      "id": "execute-node-side-effects",
      "title": "Execute with Flowise Process Privileges",
      "zhTitle": "以 Flowise 程序權限執行副作用",
      "summary": "The evaluated code has the Flowise Node.js process capabilities, including the demonstrated child-process and filesystem access. Host impact follows that service identity and its deployment permissions.",
      "zhSummary": "被執行的程式可使用 Flowise Node.js 程序的能力，包含來源展示的子程序與檔案系統存取。對主機的影響取決於服務身分與部署權限。",
      "tactic": "AML.TA0005",
      "technique": "AML.T0050",
      "layout": {
        "x": 720,
        "y": 0
      }
    }
  ],
  "threat_refs": [
    {
      "id": "AML.T0049",
      "name": "Exploit Public-Facing Application"
    },
    {
      "id": "AML.T0050",
      "name": "Command and Scripting Interpreter"
    }
  ]
}
