On June 5, the maintainers of the Model Context Protocol Python SDK published an advisory titled HTTP transports serve session requests without verifying the authenticated principal. In servers using the SDK’s built-in bearer-token authentication over HTTP, the per-client isolation could be bypassed for any session whose ID was known. Session IDs are random UUIDs, so an attacker typically needs a known session ID, from logs or network observation, not a lucky guess from the internet. The fix in version 1.27.2 records which authenticated principal created each session and rejects requests from anyone else.
The question behind the advisory
Every time an AI tool does something, ask: as whom? If an assistant reads a customer record, whose permission did it use? If two people use the same AI tool, can one of them ever see the other’s results?
The Python SDK issue was about exactly that. The session belonged to one authenticated user, but the server didn’t check that later requests came from the same user. The maintainers also recommend that deployments where many people share a single OAuth client make sure each token carries the individual user’s identity, so sessions are isolated per user rather than per app.
Why “per user” is the right default
The opposite design, where the AI uses one powerful shared account, is easier to set up and much harder to make safe. Every bug in session handling or prompt handling becomes a way to borrow someone else’s access. For the identity model I use in production, see AI agent data leakage and identity.
MCP authentication questions for your AI setup
If you have AI tools connected to business systems, ask your developer or vendor:
- Does each person authenticate as themselves? Or does everyone share one account?
- Are permissions enforced by the system the AI calls, or only by instructions in the prompt?
- Are sessions tied to a specific user, and checked on every request?
- Which SDK versions are in use, and are they patched? For the Python SDK, that means 1.27.2 or later.
- Is there an audit log showing which user triggered which tool call?
Practical steps
- Upgrade. If you run MCP servers built on the Python SDK with HTTP transport and bearer authentication, update.
- Avoid shared service accounts for user-facing tools. Use per-user tokens wherever the target system supports them.
- Keep sensitive tools separate. Tools that touch money, HR data or customer records deserve their own server and their own review.
- Test as two users. Have two people use the same AI tool at once and confirm neither can see the other’s data.
The principle stays the same
Whatever platform you choose, the AI should act as the person, with the person’s permissions, and leave a trail.
For more on this theme, see my posts on AI database access control and vetting MCP servers before you install them.
If you’re connecting AI tools to your systems and want them to act safely on behalf of each user, here’s how I approach AI workflows and automation. We can review how your tools authenticate today and tighten what needs it.