CVE-2026-30950: Authenticated Session Hijacking via IDOR in AutoGPT
CVE-2026-30950 is an authenticated insecure direct object reference (IDOR) / authorization bypass vulnerability in AutoGPT autogpt-platform-backend affecting versions 0.6.36 through 0.6.50. The flaw is in the PATCH /api/chat/sessions/{session_id}/assign-user endpoint, which is intended to let a newly authenticated user claim an anonymous session. Although the route requires a valid JWT, it does not verify that the caller owns the target session before reassigning it. In the vulnerable code path, the service function assign_user_to_session retrieves the target session by calling the session lookup helper with user_id=None. The data access layer interprets user_id=None as a privileged or system context and skips the normal ownership filter, allowing any authenticated user who knows another user’s session_id to reassign that session to themselves. Successful exploitation enables takeover of the victim’s chat session, including access to message history and associated session context, and can lock the legitimate user out. The issue was patched in version 0.6.51.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An authenticated attacker can take over another user’s AutoGPT chat session if they know the target session_id. This provides unauthorized access to the victim’s session contents, including chat history and potentially sensitive context such as tool invocations, credentials-related metadata, execution context, and user-pasted content or files. The attacker can also deny the legitimate user access to the session by reassigning ownership. Due to Redis-cached ownership state, the lockout can persist for up to 12 hours and may become durable if later session persistence writes the attacker-controlled ownership back end-to-end.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, restrict or disable access to the PATCH /api/chat/sessions/{session_id}/assign-user endpoint where feasible, especially if anonymous-to-authenticated session claiming is not required. Reduce opportunities for session_id disclosure by avoiding exposure in URLs, logs, referer headers, support artifacts, and screen shares. Monitor for suspicious session reassignment activity and unexpected ownership changes. Invalidate affected sessions and clear Redis-cached session state after suspected exploitation to remove attacker-controlled ownership mappings.
Remediation
Patch, then assume compromise.
Upgrade autogpt-platform-backend to version 0.6.51 or later, which patches the authorization flaw in the session assignment logic. The vulnerable endpoint must enforce ownership validation before allowing reassignment of a session, and privileged lookup behavior using user_id=None should not be reachable from user-controlled request paths. Review any custom forks or downstream modifications to ensure the assign-user flow cannot bypass object-level authorization checks.
Exploits
1 exploit validated by Mallory's analysis.
References
Frequently asked questions
- Is CVE-2026-30950 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2026-30950 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-30950?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-30950, the earliest disclosed May 20, 2026.
- Is there a patch for CVE-2026-30950?
- Upgrade autogpt-platform-backend to version 0.6.51 or later, which patches the authorization flaw in the session assignment logic. The vulnerable endpoint must enforce ownership validation before allowing reassignment of a session, and privileged lookup behavior using user_id=None should not be reachable from user-controlled request paths.
- How severe is CVE-2026-30950?
- CVE-2026-30950 has a CVSS v3.1 score of 7.1 (High) and an EPSS score of 0.40% (26th percentile) as of Oct 16, 2026.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.