OverReach: a permitted MCP tool call can return another user's data
OverReach measures what a policy-permitted MCP tool call actually returns, and finds backends resolving objects outside the grant.
· arXiv · Research by Nguyen Tran Thanh Lam
OverReach shows that an MCP gateway can permit a tool call whose backend still returns data outside the grant: on Gitea, permitted reads returned another user's private issue in 10 of 10 repetitions behind both ToolHive and agentgateway.
01What happened
Nguyen Tran Thanh Lam posted OverReach to arXiv on 3 December 2026, with code on GitHub under MIT and raw data deposited on Zenodo. The paper names and measures over-reach: a tool call an MCP gateway permits, where the backend then returns or changes objects outside a least-privilege grant. Two gateways were tested, ToolHive with Cedar policies and agentgateway with CEL policies, against self-hosted backends including Gitea and GitLab CE.
02How it works
A gateway decides on a tool call by its name and its arguments, so it cannot see what the backend will resolve, which is the gap the paper isolates. A permitted read of one issue can return the issue that blocks it, and a permitted comment can append a cross-reference to another issue. The author reports that benign and violating calls matched on every attribute the policies read, so policies written without sight of the test cases permitted over-reach on all four backends.
03Who is affected
Teams that restrict an AI agent with an MCP gateway policy over a multi-user backend are the audience, with ToolHive, agentgateway, Gitea and GitLab CE named in the paper. On Gitea, the author reports that permitted reads returned another user's private issue in 10 of 10 repetitions for each gateway.
04What to do
Enforce the grant where objects are resolved as well as at the gateway: the author reports that a GitLab project access token stopped every measured cross-project disclosure and write. Treat a gateway policy that matches only on tool names and arguments as incomplete, and test what a permitted call actually returns rather than what it was allowed to ask for.
Questions people ask
- Does an MCP gateway policy stop an agent from reading another user's data?
- Not on its own, per OverReach. The paper reports that on Gitea, reads permitted by both ToolHive and agentgateway returned another user's private issue in 10 of 10 repetitions, because the gateway judges a call by its name and arguments while the backend resolves related objects. Benign and violating calls matched on every attribute the policies read.
- What stopped over-reach in OverReach's experiments?
- A GitLab project access token stopped every cross-project disclosure and write the author measured. OverReach frames this as enforcing the grant where objects are resolved, at the backend, instead of only at the gateway. The paper's later experiments also tested a GitLab MCP server allow-list and agentgateway guardrails alongside the project token.
- Which backends did OverReach test besides Gitea?
- GitLab CE, Stuga and Nextcloud are the other backends OverReach names, with Nextcloud used as a contrast case in a later experiment. The author reports that policies written without sight of the test cases permitted over-reach on all four backends. Code sits on GitHub under MIT, and the raw data is deposited on Zenodo.
Sources 2 links, all fetched
- 1arxiv.orgarXiv Paper
- 2github.comCode And Artifacts