TL;DR: MCP-based AI systems can leak cross-user data without any authentication breach when a privileged server misapplies session context or user permissions, according to Cerbos. The real failure is authorization design: existing RBAC and inline logic do not hold up when AI-driven components decide what to fetch and from where.
At a glance
What this is: This analysis argues that MCP introduces a new authorization blind spot, where authenticated AI-driven requests can still expose the wrong user's data if the server's permission handling is too broad or context is lost.
Why it matters: IAM, PAM, and NHI teams need to treat MCP servers as privileged authorization decision points, because identity verification alone does not stop context leakage or over-broad access across backend systems.
Context
MCP security risks emerge when an AI application can act inside a valid session but still overreach what that session should be allowed to do. The problem is not basic login failure, but the gap between authentication and authorization when an MCP server brokers access to multiple systems on behalf of a user.
In this model, the MCP server becomes a high-privilege intermediary that can lose user context, inherit excessive permissions, or make the wrong downstream decision. That creates a governance problem for identity programmes because the control failure sits inside the delegation chain, not at the sign-in step.
Key questions
Q: What breaks when MCP servers rely on a single shared credential?
A: A single shared credential breaks attribution, scope control, and revocation precision. If the server can be used by multiple people, you cannot easily tell which human authorised a specific action, and removing the credential can disrupt unrelated workflows. That makes the credential both operationally convenient and governance-heavy.
Q: Why do MCP-based AI systems create cross-user data exposure risk?
A: Because the AI can be correctly authenticated while still being authorized too broadly, or not contextually enough. If the MCP server misapplies session data, reuses a powerful token, or follows a prompt into the wrong record set, it can return another user's data without any login breach. The risk is authorization overreach, not broken identity proofing.
Q: What are the signs that RBAC is failing for AI tool access?
A: Common warning signs include rapidly multiplying roles, frequent one-off exceptions, and developers embedding permission checks directly into service code. Those patterns show that static role design cannot express the context AI needs. When access decisions keep moving from policy into code, the organization has already lost governance clarity.
Q: How should teams govern AI systems that can take actions as well as generate outputs?
A: Treat the agent as a governed actor, not just a model output stream. Require action-level logging, tool-call traceability, authorization boundaries, and approval gates before the system can write to records or invoke downstream tools. If an AI system can change state, its authority must be scoped, monitored, and revocable like any other privileged non-human identity.
Technical breakdown
Why MCP servers become a privileged authorization layer
An MCP server sits between an AI application and the systems it queries, so it often becomes the component that decides which tools, databases, or APIs are reached. If it uses its own service account, downstream systems see a trusted internal identity rather than the end user. If it impersonates the user, it can still inherit more permission than the immediate task needs. Either way, the server is no longer a passive relay. It is an authorization choke point, and any flaw in its policy handling can expose data across systems that were never meant to be queried together.
Practical implication: Treat the MCP server as an enforcement boundary, not a harmless middleware layer.
Why RBAC and inline code fail in AI-driven flows
RBAC works best when roles are stable and access patterns are predictable, but AI workflows assemble requests dynamically and often need contextual decisions. That leads to coarse roles, brittle exceptions, and over-provisioning. The alternative, hard-coded if/else logic inside the MCP implementation, scatters policy across services and makes access rules invisible to auditors. In both cases, the system ends up deciding access too late and too locally. Fine-grained authorization needs a central policy source that can evaluate user, action, resource, and context consistently at runtime.
Practical implication: Move authorization decisions out of application code and into a centralized policy decision point.
How a confused deputy leak happens in practice
A confused deputy occurs when a trusted component is tricked into using legitimate authority in the wrong context. In MCP architectures, a user may be authorized to ask for one thing, but the server can be induced to fetch adjacent data from another user, another system, or another scope. The risk rises when the AI agent can combine user intent, session state, and broad backend privileges in ways the original policy never modelled. The failure is not that the user was unknown. It is that the server could not reliably constrain what that known user was permitted to do in that moment.
Practical implication: Apply per-request authorization checks at each trust boundary, not just at session start.
Threat narrative
Attacker objective: The objective is to obtain unauthorized cross-user or cross-system data without needing to steal credentials or break authentication.
- Entry occurs when a legitimate user interacts with an AI assistant that has been connected to backend systems through MCP.
- Credential or context abuse follows when the MCP server uses a broad service account or inherits a user's full permission set.
- Impact appears when the server fetches data outside the user's rightful scope and returns another user's records or other sensitive information.
Breaches seen in the wild
- Internet Archive breach 2024: An exposed GitLab token opened Internet Archive code and 31 million user records; unrotated Zendesk tokens let the attacker back in weeks later.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Authorization, not authentication, is the core MCP governance problem. The article shows that a user can be fully authenticated and still receive the wrong data if the MCP server mishandles session context or acts with excessive authority. That means identity programmes that stop at sign-in are solving the wrong layer. The practical conclusion is that AI tool access must be governed as a runtime authorization problem, not a login problem.
MCP creates a new privileged intermediary that identity models were not built to trust blindly. Traditional end-to-end access assumptions expect the requesting identity to remain visible to downstream controls. MCP often breaks that chain by replacing the user with a powerful service identity or by reusing the user's own broad permissions. The implication is that least privilege has to be enforced at every hop, because the delegation chain itself has become the attack surface.
Role explosion is not a scaling issue, it is a symptom of the wrong control model. When teams try to encode AI access with coarse RBAC or scattered if/else checks, they end up with brittle policy, hidden logic, and over-permissioned agents. The named concept here is the authorization blind spot: the gap between a trusted AI workflow and a governable access decision. Practitioners should treat that blind spot as a design defect in the authorization architecture, not as a tuning problem.
Externalized authorization is the control pattern that matches the threat model. A central policy decision point with lightweight enforcement points gives each component the same decision logic at runtime, which is the only workable answer when requests are assembled dynamically. That does not remove risk, but it makes policy consistent, auditable, and testable across the AI application, MCP server, and backend service. The practitioner takeaway is to standardize decision-making before scaling AI access further.
MCP security is now an identity governance issue as much as an application architecture issue. The article makes clear that auditability, least privilege, and data privacy all depend on how the intermediary is authorized. That pushes MCP into the remit of IAM, PAM, and NHI governance teams, not just platform engineers. The field should stop treating AI tool brokers as simple integration glue and start treating them as governed access infrastructure.
From our research library:
- 24,008 unique secrets were exposed in MCP configuration files in 2025 alone, the protocol's first year of widespread adoption, according to the State of Secrets Sprawl 2026.
- Read next: AI Agent Authorisation Guide
What this signals
Authorization blind spot: MCP changes the control question from “is the user authenticated?” to “is this exact action allowed right now?” When AI systems assemble requests dynamically, review-time IAM checks are too late to stop an over-broad tool call. Practitioners should move enforcement to issuance time and policy evaluation at each trust boundary.
The architecture also shifts accountability. Once a service account or delegated user token can reach multiple back-end systems, access reviews alone do not prove that the right data stayed in scope. Teams need continuous decision logs, not just periodic entitlement recertification, to understand whether MCP-driven access is staying inside policy.
For practitioners
- Separate authentication from authorization Keep user verification distinct from the decision that allows a tool call, database query, or API request to proceed. The MCP server should never be trusted to infer permission from identity alone.
- Enforce per-request policy checks Require every critical trust boundary, including the AI layer, the MCP server, and each backend service, to ask a central policy decision point before acting.
- Eliminate policy in application code Remove if/else authorization logic from MCP implementations and replace it with a centrally governed policy model that can be reviewed, tested, and audited consistently.
- Constrain delegated permissions Limit what the MCP server can do when it carries a user's token or service account so it cannot roam across systems beyond the immediate task context.
Key takeaways
- MCP security failures often happen after authentication has already succeeded, which means the real control gap sits in authorization and session handling.
- The most dangerous pattern is a privileged intermediary that can fetch data across systems without preserving the user's true scope.
- Externalized, per-request authorization is the practical control that limits cross-user leakage and makes AI tool access auditable.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-05 — Overprivileged NHI | The article centers on MCP servers carrying overly broad service or delegated permissions. |
| NHI-04 — Insecure Authentication | The article contrasts authentication success with failed authorization in AI-driven access flows. | |
| NHI-10 — Human Use of NHI | Users can unintentionally drive NHI-like brokers to exceed the access they intended to use. | |
| Recommendation — Reduce MCP authority to the minimum permissions needed for each request and separate tool scope from user scope. Keep authentication and authorization separate so a valid login never becomes a blanket data-access grant. Prevent humans from indirectly operating privileged non-human brokers without contextual policy checks. | ||
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | AI-driven tool brokers can misuse inherited identity and privilege when acting on behalf of users. |
| Recommendation — Apply runtime privilege checks to agent-driven requests before any tool call is executed. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | The article is fundamentally about fine-grained authorization and entitlement control across trusted components. |
| Recommendation — Centralize entitlement decisions and log every AI-driven access decision for auditability. | ||
Key terms
- Confused Deputy: A confused deputy is a privileged system that is tricked into performing an action on behalf of an untrusted requester. In agentic AI, the agent may misread malicious input as legitimate intent and then use its own authority to act, which turns a logic problem into a security incident.
- Externalized Authorization: A design pattern where access decisions are removed from application code and handled by a separate policy layer. This makes authorization easier to govern, test, audit, and reuse across services, especially when roles, attributes, and request context change frequently.
- Policy Enforcement Point: A policy enforcement point is the control that applies an authorization decision at the place where an action occurs. In distributed systems, it may sit inside an API gateway, application, or workflow engine, and it depends on a consistent decision format to avoid bespoke integrations.
- Policy decision point: A policy decision point evaluates contextual rules and returns an access decision that enforcement points can act on. It separates authorization logic from application code, which helps teams manage tenant rules, resource ownership, and risk signals consistently.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
Published by the NHIMG editorial team on June 11, 2026.
Updated on October 6, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org