Skip to main content
Mallory
← Back to News
ai-platform-securityidentity-authentication-vulnerabilitywidely-deployed-product-advisoryinternet-facing-service-vulnerability

AutoGPT Session Hijack and MCP WebSocket Flaw Expose AI Developer Environments

Emerging Technology Risk · 3 sources · Updated 4mo ago · First seen Jul 20, 2026

AutoGPT Session Hijack and MCP WebSocket Flaw Expose AI Developer Environments

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-backend versions 0.6.36 through 0.6.50
    • MCP Python SDK WebSocket handling in mcp.server.websocket
  • 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-59950 is reported
    • CVE-2026-59950 is not listed in CISA KEV
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Mar 8, 2026 – Jul 16, 2026
  1. Jul 16, 20265mo ago

    CVE-2026-59950 details published for MCP Python SDK

    A report described CVE-2026-59950 as a high-severity cross-site WebSocket hijacking flaw affecting Model Context Protocol Python SDK server WebSocket handling. The write-up explained that a hijacked browser connection could send arbitrary JSON-RPC commands and also documented a mitigation using TransportSecurityMiddleware to validate hosts and origins.

    CVE-2026-59950: CVE-2026-59950: Cross-Site WebSocket Hijacking in Model Context Protocol Python SDK | CVEReports
  2. May 20, 20266mo ago

    Bugflation reports ZeroPath backfill including AutoGPT CVE

    Bugflation summarized a backfill of eight publicly corroborated vulnerabilities and included the AutoGPT session hijacking issue among them. The report said the vulnerabilities were corroborated by public CVE records, vendor advisories, and fixes, while noting ZeroPath's discovery attribution was self-reported.

    ZeroPath public research adds eight omitted CVEs - Bugflation
  3. May 20, 20266mo ago

    ZeroPath publicly discloses AutoGPT session hijacking flaw

    ZeroPath Research publicly disclosed CVE-2026-30950, an authenticated IDOR vulnerability in AutoGPT that lets any logged-in user hijack another user's chat session if they know the session ID. The disclosure said affected versions were 0.6.36 through 0.6.50 and that exploitation could expose chat history, pasted files, and execution context while locking out the victim.

    CVE-2026-30950 Allows Chat Session Hijacking In AutoGPT - ZeroPath Blog | ZeroPath
  4. Mar 8, 20269mo ago

    AutoGPT authorization bypass fix committed in version 0.6.51

    The AutoGPT project committed a fix for CVE-2026-30950 on 2026-03-08, addressing an authorization bypass in the chat session assignment endpoint. The patched release was identified as autogpt-platform-backend version 0.6.51.

    CVE-2026-30950 Allows Chat Session Hijacking In AutoGPT - ZeroPath Blog | ZeroPath
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.