Grackle AI MCP Tool Layer Fail-Open Authorization Leads to IDOR and Privilege Escalation (GHSA-f9ff-5x35-7gfw)
The Grackle AI MCP tool layer, specifically versions of `@grackle-ai/mcp`, `@grackle-ai/plugin-core`, and `@grackle-ai/auth` up to `0.132.1`, suffers from an authorization bypass (IDOR) due to inconsistent inline checks, allowing a compromised scoped agent to perform unauthorized cross-task and cross-session operations, leading to data manipulation, denial of service, and sensitive data disclosure across workspaces.
Grackle AI's Multi-Agent Collaboration Protocol (MCP) tool layer, including @grackle-ai/mcp, @grackle-ai/plugin-core, and @grackle-ai/auth up to version 0.132.1, contains critical authorization bypass vulnerabilities (GHSA-f9ff-5x35-7gfw). The core issue stems from inconsistent inline authorization checks within the tool layer, which is the sole authorization boundary for scoped callers. Because the MCP server authenticates all outbound gRPC with a full server API key and backend gRPC handlers perform no caller-based authorization, several mutating tools (task_update, task_delete, task_resume, session_kill, session_resume) silently omit necessary ancestry/workspace checks, effectively "failing open." This allows a malicious or prompt-injected scoped agent to perform unauthorized cross-task and cross-session operations, enabling IDOR, privilege escalation, and denial of service. Additionally, a flaw in handling workspaceless sessions allows for cross-workspace read-only data disclosure. The vulnerability was published on July 2, 2026.
Attack Chain
- Initial Access/Compromise: An attacker gains control over an existing Grackle AI "scoped agent" within a customer environment, potentially through prompt injection, misconfiguration, or compromising the underlying system hosting the agent.
- Task ID Enumeration (F2): The compromised scoped agent leverages legitimate tools like
task_listortask_searchto discovertaskIdvalues belonging to other tasks, including those of sibling agents, parent tasks, or tasks in different workspaces. - Cross-Workspace Discovery (F7): If the compromised agent operates from a workspaceless session, it exploits the
workspaceId: undefinedbypass inmcp-server.tsto calltask_list(without arguments) and retrieve information about all tasks across all workspaces within the Grackle AI instance. - Unauthorized Data Disclosure (F7): Using the enumerated
taskIdvalues, the agent then callstask_show {taskId}orschedule_showto access and potentially exfiltrate sensitive details (e.g., title, description, branch, review notes) from tasks it is not authorized to view across workspaces. - Task Data Manipulation/Destruction (F2): The agent invokes
task_update,task_delete, ortask_resumewith arbitrarytaskIdvalues (bypassing ancestry checks), allowing it to modify (e.g., change status tocomplete/failed, rewrite dependency DAG/budgets) or permanently delete tasks belonging to other agents or the human orchestrator. - Session Denial of Service / Hijacking (F6): The agent calls
session_kill {sessionId}orsession_resume {sessionId}(bypassing ancestry checks) to terminate or resume active sessions of other agents or the root orchestrator, leading to a denial of service or unauthorized session control.
Impact
The vulnerabilities allow a compromised Grackle AI scoped agent to escalate privileges, gain unauthorized access to sensitive data, and disrupt operations. Specifically, attackers can permanently destroy other agents' or the human orchestrator's work, corrupt task dependency graphs and budgets, terminate other active sessions (leading to a denial of service for sibling agents or the root orchestrator), hijack foreign sessions, and exfiltrate sensitive task metadata (titles, descriptions, branch info, review notes) from any workspace. The "fail-open" nature means new tools can introduce similar vulnerabilities if ancestry checks are omitted, making the system inherently fragile. The advisory covers systemic findings F2, F6, F7, and F12.
Recommendation
- Prioritize updating all
@grackle-ai/mcp,@grackle-ai/plugin-core, and@grackle-ai/authpackages to versions greater than0.132.1to address GHSA-f9ff-5x35-7gfw. - Ensure that the remediation for GHSA-f9ff-5x35-7gfw, specifically the enforcement of scope centrally in the
CallToolRequestdispatcher (mcp-server.ts) viatargetTaskIdArg/targetSessionIdArgdescriptors, is fully implemented and operational. - Verify that
assertCallerIsAncestoror equivalent self-or-ancestor checks have been added totask_update,task_delete,task_resume,session_kill, andsession_resumeas described in the remediation for GHSA-f9ff-5x35-7gfw. - Confirm that the fix for F7, preventing failure-open on empty
workspaceIdand applyingtask_showmembership checks for all scoped non-root callers, is properly deployed per GHSA-f9ff-5x35-7gfw. - If
scoped-token.ts(F12) is wired into task-abort/stop flows with SQLite-backed persistence, ensure this feature is functional to allow for proper scoped token revocation, as recommended in GHSA-f9ff-5x35-7gfw.