GHSA-647h-p824-99w7: @grackle-ai/mcp has a workspace authorization bypass in its knowledge_search MCP tool
The MCP server package `@grackle-ai/mcp` 0.70.1 and earlier does not enforce workspace scoping in two tools, `knowledge_search` and `knowledge_get_node`. A scoped agent in one workspace can pass another workspace's ID and read its knowledge graph nodes. Fixed in 0.70.2.
Published Mar 25, 2026 · Analysis Oct 31, 2026
What an attacker can do
Grackle gives agents scoped tokens that should confine them to one workspace. Both tools are listed in SCOPED_TOOLS in packages/mcp/src/tool-scoping.ts, so scoped agents can call them. Their handlers in packages/mcp/src/tools/knowledge.ts never received authContext, so they trusted the workspaceId argument the caller supplied (CWE-284). Another tool in the same file, knowledge_create_node, does it correctly and overrides the ID for scoped callers.
An attacker needs a scoped agent token, or control over what a scoped agent does. A prompt injection in a repository, issue or web page that steers the agent is enough: it can tell the agent to call knowledge_search with a different workspaceId. The result is cross-workspace data leakage. Any knowledge graph content in the other workspace, such as notes on private repositories, designs or internal decisions, can be searched and read.
Only deployments with several workspaces and scoped tokens are exposed. The CVSS vector also rates integrity impact high, though the advisory text describes only reads.
Who is affected
The npm package @grackle-ai/mcp at 0.70.1 and earlier. Check with:
npm ls @grackle-ai/mcpSingle-workspace setups have no other workspace to leak from.
@grackle-ai/mcp
- Ecosystem
- npm
- Affected
- <= 0.70.1
- Fixed in
- 0.70.2
- Check
npm ls @grackle-ai/mcp
How to fix it
Upgrade to @grackle-ai/mcp 0.70.2:
npm install @grackle-ai/[email protected]The fix adds authContext to both handlers and, for scoped callers, uses the workspace from the auth context rather than the supplied argument. Workarounds from the advisory: do not use scoped agent tokens in multi-workspace deployments until patched, or remove knowledge_search and knowledge_get_node from SCOPED_TOOLS in tool-scoping.ts.
How to tell if you were hit
The advisory lists no indicators. Review MCP tool call logs for knowledge_search and knowledge_get_node calls from scoped agents where the workspaceId argument differs from the agent's own workspace. If such calls exist, treat the other workspace's knowledge as disclosed. Beam records MCP tool calls made by agents, so its record of these calls can show the arguments an agent sent.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
The knowledge_search and knowledge_get_node MCP tools are included in SCOPED_TOOLS (visible to scoped agents) but their handlers do not receive authContext and do not enforce workspace scoping. A scoped agent in Workspace A can supply an arbitrary workspaceId parameter to search or retrieve knowledge graph nodes from Workspace B, bypassing workspace isolation boundaries.
This is a cross-workspace data leakage vulnerability affecting any deployment where multiple workspaces contain sensitive knowledge graph data and scoped agents are used.
Affected code:
packages/mcp/src/tools/knowledge.ts:146-169(knowledge_search handler)packages/mcp/src/tools/knowledge.ts:244-283(knowledge_get_node handler)packages/mcp/src/tool-scoping.ts:11(both tools listed in SCOPED_TOOLS)
Contrast with correct implementation: knowledge_create_node (same file, lines 334-357) properly receives authContext and overrides the user-supplied workspaceId for scoped callers.
Design Note
Cross-workspace knowledge sharing is a legitimate future feature — agents working across different repos may need to collaborate and share knowledge. However, this access should be opt-in with explicit grants, not an implicit bypass. The immediate fix locks scoped agents to their own workspace. A future design could introduce:
- Workspace-level "share knowledge with" settings
- A
cross_workspacescope on scoped tokens - Explicit
workspaceIds(plural) in the auth context
Patches
Fix: Add authContext parameter to knowledge_search and knowledge_get_node handlers and enforce workspace scoping, matching the pattern in knowledge_create_node:
const resolvedWorkspaceId =
authContext?.type === "scoped"
? authContext.workspaceId ?? ""
: workspaceId ?? "";When cross-workspace collaboration is designed, this check can be relaxed intentionally with proper access controls.
Workarounds
Do not use scoped agent tokens in multi-workspace deployments until patched. Alternatively, remove knowledge_search and knowledge_get_node from the SCOPED_TOOLS set in tool-scoping.ts.
References
- CWE-284: Improper Access Control
- File:
packages/mcp/src/tools/knowledge.ts - File:
packages/mcp/src/tool-scoping.ts
Questions
- Which tools are affected in @grackle-ai/mcp?
knowledge_search and knowledge_get_node. The knowledge_create_node tool already enforced the scoped workspace and is not affected.
- Which version fixes it?
0.70.2. Versions 0.70.1 and earlier are vulnerable.
- Is there a CVE for this?
Our data lists only the advisory GHSA-647h-p824-99w7, with no CVE id. It is rated high, CVSS 4.0 score 8.6.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Other MCP servers and tools vulnerabilities
All Other MCP servers and tools entriesCVE-2026-102610
fast-agent: `fast-agent serve` binds HTTP to 0.0.0.0 with no authentication by default; with --shell this is unauthenticated remote command execution
medium6.4Nov 9, 2026CVE-2026-63655
tsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS
high7.5Nov 9, 2026CVE-2026-76892
tsParticles: Malformed JSON requests can terminate the @tsparticles/mcp-server HTTP process
high8.7Nov 9, 2026CVE-2026-76893
tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients
medium6.9Nov 9, 2026CVE-2026-77604
Code Graph RAG: MCP paginated read_file path traversal / arbitrary file read
high7.5Nov 9, 2026CVE-2026-87008
Code Graph RAG structural tools follow out-of-root symlinks
high7.1Nov 9, 2026
