GHSA-q2qc-744p-66r2: OpenClaw: `session_status` sessionId resolution bypasses sandboxed session-tree visibility
In OpenClaw 2026.3.11 through 2026.3.24, the session_status tool lets a sandboxed child agent read status for parent or sibling sessions by passing a sessionId instead of a sessionKey. The visibility check was skipped on that path. Upgrade openclaw to 2026.3.28, the patched version in the package data.
Published Mar 29, 2026 · Analysis Oct 31, 2026
What an attacker can do
OpenClaw restricts sandboxed sessions to their own session tree. The session_status tool enforced that rule for explicit session keys, so a child asking for its parent's key was refused.
The bug was in the sessionId path. The tool resolved a sessionId into a canonical key of the form agent:..., then the visibility guard tested whether the requested key started with agent:. After resolution it always did, so the guard was skipped. A sandboxed child that knew or guessed a parent or sibling sessionId got status for a session outside its tree. This is an authorization bypass through a user-controlled key (CWE-639, CWE-863).
In practice the gain is cross-session information: status details of sessions the sandbox was meant to hide. The attacker is a sandboxed agent, which may be steered by a prompt injection, and it needs a valid sessionId. The advisory reports no code execution or write access, and it publishes no CVSS score.
Who is affected
openclaw from 2026.3.11 up to and including 2026.3.24. Earlier versions do not have the flaw. Only setups that run sandboxed sessions or sub-agents with the session_status tool are meaningfully exposed. Check the installed version:
npm ls openclawopenclaw
- Ecosystem
- npm
- Affected
- >= 2026.3.11, <= 2026.3.24
- Fixed in
- 2026.3.28
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.28:
npm install [email protected]The advisory text names 2026.3.25 as the first patched release; the package data says 2026.3.28, so use that or newer. Commit d9810811b6c3 changes the guard in src/agents/tools/session-status-tool.ts to use a flag captured before sessionId resolution. The advisory names no workaround.
How to tell if you were hit
After the fix, a blocked call returns the error "Session status visibility is restricted to the current session tree." Before upgrading, review session_status calls from sandboxed children that pass a sessionId which belongs to a parent or sibling session. Beam records agent tool calls, including MCP tool calls, and can show a sandboxed agent probing session identifiers.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
session_status sessionId resolution bypasses sandboxed session-tree visibility
Affected Packages / Versions
- Package:
openclaw - Affected versions:
>= 2026.3.11, <= 2026.3.24 - First patched version:
2026.3.25 - Latest published npm version at verification time:
2026.3.24
Details
session_status previously resolved a sessionId to a canonical session key after early visibility checks, letting sandboxed children reach parent or sibling sessions that were blocked by explicit sessionKey. Commit d9810811b6c3c9266d7580f00574e5e02f7663de enforces visibility after sessionId resolution so sandboxed callers cannot escape their session tree.
Verified vulnerable on tag v2026.3.24 and fixed on main by commit d9810811b6c3c9266d7580f00574e5e02f7663de.
Fix Commit(s)
d9810811b6c3c9266d7580f00574e5e02f7663de
Credited to nexrin, KeenSecurityLab, qclawer.
Questions
- Does GHSA-q2qc-744p-66r2 allow code execution?
No source says so. It is an authorization bypass that exposes session status across the sandbox's session tree boundary.
- Is there a CVE for it?
The entry has only the GHSA id, GHSA-q2qc-744p-66r2, and no CVE number.
- What was the exact code error?
The guard checked whether the requested key began with agent:, but sessionId resolution rewrites the key into that form first. The fix tests a flag recorded before resolution.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More OpenClaw vulnerabilities
All OpenClaw entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
