AutoGPT Session Hijack and MCP WebSocket Flaw Expose AI Developer Environments
Emerging Technology Risk · 3 sources · Updated 4mo ago · First seen Jul 20, 2026

Researchers disclosed two high-severity flaws affecting AI tooling: CVE-2026-30950 in AutoGPT and CVE-2026-59950 in the Model Context Protocol (MCP) Python SDK. In AutoGPT, an authenticated insecure direct object reference in the /api/chat/sessions/{session_id}/assign-user endpoint allowed any logged-in user to reassign another user’s chat session with a single PATCH request if the session ID was known. The bug affected autogpt-platform-backend versions 0.6.36 through 0.6.50 and was fixed in 0.6.51; successful exploitation could expose full chat histories, pasted files, execution context, and credential-related metadata while also locking the victim out of the session.
Why it matters
Impact assessment
Both flaws affect AI developer environments and platforms that handle sensitive prompts, files, tool outputs, and credentials-adjacent context. The most exposed populations are organizations running AutoGPT multi-user deployments and developers or teams using the MCP Python SDK with local tools, filesystems, databases, or agent integrations.
Impact is high because successful exploitation can expose chat histories, pasted files, execution context, and credential-related metadata in AutoGPT, while MCP exploitation can enable arbitrary JSON-RPC actions against trusted local tooling with the local user’s privileges. Scope appears broader for exposure investigation than for confirmed incidents: these are product-level flaws in commonly reused AI tooling, but no active exploitation in the wild is reported for CVE-2026-59950 and the provided references do not cite in-the-wild exploitation for CVE-2026-30950.
Supporting facts
- Affected products:
- AutoGPT
autogpt-platform-backendversions0.6.36through0.6.50 - MCP Python SDK WebSocket handling in
mcp.server.websocket
- AutoGPT
- Affected users:
- Multi-user AutoGPT tenants and operators
- Developers using local MCP servers with LLM integrations
- Teams exposing local files, databases, and development tools through MCP-connected workflows
- Business impact:
- Confidentiality loss from exposure of chat history, pasted files, credentials metadata, and execution context
- Integrity loss from unauthorized reassignment of AutoGPT sessions and arbitrary JSON-RPC command delivery to MCP servers
- Operational disruption from victim lockout in AutoGPT sessions
- Potential downstream credential theft and host-level abuse in MCP-connected local environments
- Scope and exploitation status:
- AutoGPT exploitation requires a valid authenticated account and knowledge of a target
session_id - MCP exploitation requires a hijacked browser connection and cross-origin or DNS rebinding-style abuse against a local WebSocket server
- No active exploitation of
CVE-2026-59950is reported CVE-2026-59950is not listed in CISA KEV
- AutoGPT exploitation requires a valid authenticated account and knowledge of a target


