CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-Q2QC-744P-66R2

GHSA-Q2QC-744P-66R2: OpenClaw session_status Sandbox Bypass via sessionId Resolution

Alon Barad
Alon Barad
Software Engineer

Mar 29, 2026·5 min read·20 visits

Executive Summary (TL;DR)

OpenClaw versions 2026.3.11 through 2026.3.24 fail to properly apply visibility guards when resolving `sessionId` aliases in the `session_status` tool, leading to sandbox escapes and unauthorized metadata disclosure.

The OpenClaw AI personal assistant framework contains an authorization bypass in the `session_status` tool. A logic flaw in input resolution allows sandboxed subagents to query the status of parent or sibling sessions, circumventing intended visibility restrictions.

Vulnerability Overview

OpenClaw provides an AI personal assistant framework featuring a sandboxed mode. This mode restricts specific agents to their designated session tree. The session_status tool operates within this ecosystem, allowing agents to query the operational state of active sessions.

A vulnerability exists within this tool that compromises the isolation guarantees of the sandbox. The flaw is classified as Improper Authorization (CWE-285) and Insecure Direct Object Reference (CWE-639). It permits a sandboxed subagent to access metadata belonging to parent or sibling sessions.

The core issue stems from an incorrect order of operations during input processing. The session_status tool resolves short session aliases into canonical keys before evaluating security boundaries. This specific sequence leads to a complete bypass of the visibility guard.

Root Cause Analysis

The session_status tool accepts a sessionKey parameter to specify the target session. This parameter can be provided as a canonical key (starting with agent:) or a shorter sessionId alias. The system normalizes the input by resolving the alias to its canonical form via the sessions.resolve function.

The visibility guard determines if the requested session falls within the authorized session tree of the querying agent. The logic relies on checking if the input string begins with agent: to decide whether to execute the security check.

The flaw occurs because the resolution step mutates the requestedKeyRaw variable to the canonical agent: format before the guard condition is evaluated. Consequently, the visibility guard checks the mutated string instead of the original input. Because the string was already converted, the condition !requestedKeyRaw.startsWith("agent:") evaluates to false. The security check is skipped entirely for any input that originated as a short alias.

Code Analysis

The vulnerable implementation modifies the input variable before the security check occurs. This architectural mistake allows aliases to bypass the authorization requirements.

// Vulnerable Implementation
// Resolution block rewrites requestedKeyRaw to an explicit "agent:..." key
if (resolved && !requestedKeyRaw.startsWith("agent:")) {
    requestedKeyRaw = resolved.key;
}
 
// Flawed guard check: requestedKeyRaw now starts with "agent:", so check is skipped
if (visibilityGuard && !requestedKeyRaw.startsWith("agent:")) {
    visibilityGuard.check(normalizeVisibilityTargetSessionKey(resolved.key, agentId));
}

The patch introduced in commit d9810811b6c3c9266d7580f00574e5e02f7663de introduces a boolean flag named isExplicitAgentKey. This flag stores the original state of the input before any mutation takes place.

// Patched Implementation
const isExplicitAgentKey = requestedKeyRaw.startsWith("agent:");
 
// Resolution uses the pre-resolution flag
if (resolved && !isExplicitAgentKey) {
    requestedKeyRaw = resolved.key;
}
 
// Correct guard check using the pre-resolution flag
if (visibilityGuard && !isExplicitAgentKey) {
    const access = visibilityGuard.check(
      normalizeVisibilityTargetSessionKey(resolved.key, agentId),
    );
    // ... handle access
}

This fix ensures the guard logic evaluates the original input type rather than the post-resolution string. The implementation fully resolves the logic flow error, preventing alias-based inputs from bypassing the visibility check.

Exploitation Methodology

An attacker controlling a sandboxed subagent must first identify or guess a valid sessionId outside their authorized tree. The sessionId format typically follows a predictable string structure. This predictability reduces the complexity of acquiring a valid target alias.

The attacker invokes the session_status tool using the target sessionId alias instead of the canonical agent: key. The system accepts the alias and resolves it internally. The mutated string causes the application to bypass the visibility guard logic.

The tool subsequently returns the status metadata for the unauthorized session. The official OpenClaw test suite includes a proof-of-concept demonstrating this execution path. The exploit requires no special network position, only standard access to the sandboxed agent environment.

// PoC execution triggering the bypass
const tool = getSessionStatusTool("agent:main:subagent:child", {
  sandboxed: true,
});
 
// Providing the alias 's-parent' bypasses the guard
await tool.execute("call7-parent-session-id", {
  sessionKey: "s-parent",
});

Impact Assessment

Successful exploitation results in unauthorized read access to session metadata. The attacker successfully breaches the logical isolation provided by the OpenClaw sandbox.

The exposed metadata pertains to parent or sibling sessions that operate outside the restricted environment. While the vulnerability does not directly grant arbitrary code execution, it exposes internal state information. This disclosure aids an attacker in mapping the broader OpenClaw architecture and session hierarchy.

The confidentiality impact is constrained to session status metadata. The integrity and availability of the system remain unaffected. The vulnerability requires existing access to a sandboxed agent, limiting the initial attack vector to authenticated or internally provisioned contexts.

Remediation and Mitigation

The vulnerability is addressed in OpenClaw version 2026.3.25 and fully resolved in version 2026.3.26. Organizations must upgrade the openclaw npm package to version 2026.3.26 or later to ensure complete remediation.

If immediate patching is unfeasible, administrators can apply a configuration workaround. The session_status tool can be explicitly disabled for sandboxed agents. This is achieved by modifying the agents.list[].tools array in the environment configuration to omit the vulnerable tool.

Detection engineering efforts should monitor tool execution traces. Defenders should alert on session_status tool invocations where the sessionKey parameter utilizes a short alias format instead of the standard canonical structure.

Official Patches

GitHub AdvisoryGlobal GitHub Security Advisory
OpenClaw RepositoryRepository level security advisory

Fix Analysis (1)

Technical Appendix

CVSS Score
6.5/ 10
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N

Affected Systems

OpenClaw FrameworkOpenClaw `session_status` tool

Affected Versions Detail

Product
Affected Versions
Fixed Version
openclaw
openclaw
>= 2026.3.11, <= 2026.3.242026.3.25
AttributeDetail
CWE IDCWE-285, CWE-639
Attack VectorLocal / Sandboxed Environment
ImpactUnauthorized Information Disclosure
Exploit StatusProof of Concept Available
CVSS Score6.5
Fix Commitd9810811b6c3c9266d7580f00574e5e02f7663de

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
T1082System Information Discovery
Discovery
CWE-285
Improper Authorization

Improper Authorization logic allows circumvention of intended access restrictions.

Known Exploits & Detection

Test Suite PoCProof of concept code included in the repository test suite demonstrating sandbox bypass.

Vulnerability Timeline

Related bug report (Issue #42692) filed regarding Unknown sessionId.
2026-03-11
Security fix committed to repository.
2026-03-26
Advisory GHSA-q2qc-744p-66r2 published.
2026-03-26
Patched version 2026.3.26 released.
2026-03-26

References & Sources

  • [1]GitHub Advisory GHSA-Q2QC-744P-66R2
  • [2]Repository Security Advisory
  • [3]Fix Commit d9810811b6c3c9266d7580f00574e5e02f7663de
  • [4]GitHub Issue #42692: Unknown sessionId

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 5 hours ago•CVE-2026-55699
6.5

CVE-2026-55699: Arbitrary Directory Deletion via Path Traversal in pnpm globalBinDir Resolver

CVE-2026-55699 (also identified as GHSA-4gxm-v5v7-fqc4) is a critical path traversal and arbitrary directory deletion vulnerability in the pnpm package manager. The issue exists because the manifest validation process fails to prevent relative path segments within the package 'bin' keys. When a malicious package containing structured path traversal markers is globally installed and later manipulated, pnpm resolves the target paths through path.join() and passes the resolved paths to a recursive deletion function, resulting in arbitrary directory removal.

Amit Schendel
Amit Schendel
4 views•6 min read
•about 9 hours ago•CVE-2026-55700
7.1

CVE-2026-55700: Path Traversal and Arbitrary File Write in pnpm stage download

A path traversal vulnerability in pnpm stage download allows malicious registries or compromised package manifests to overwrite arbitrary files on the victim's filesystem via unvalidated package name and version fields.

Alon Barad
Alon Barad
8 views•4 min read
•about 11 hours ago•GHSA-WW5P-J6CJ-6MQQ
5.5

GHSA-WW5P-J6CJ-6MQQ: Credential Exposure in Nezha Dashboard DDNS and Notification APIs

GHSA-WW5P-J6CJ-6MQQ is a technical credential exposure vulnerability in Nezha Dashboard prior to version 2.2.5. The vulnerability allows authenticated administrative users or actors possessing scoped read-only Personal Access Tokens (PATs) to exfiltrate plaintext third-party API credentials, secret keys, and webhook authorization headers due to a lack of data redaction during API object serialization.

Amit Schendel
Amit Schendel
6 views•7 min read
•about 11 hours ago•GHSA-FR4H-3CPH-29XV
7.1

GHSA-FR4H-3CPH-29XV: Path Traversal and Directory Hijacking in pnpm and pacquet Dependency Resolution

GHSA-FR4H-3CPH-29XV is a high-severity path traversal vulnerability in pnpm and its Rust-based port pacquet. The flaw manifests when using the hoisted node-linker configuration, allowing an attacker to manipulate the lockfile to resolve relative traversal sequences or target reserved subdirectories, leading to arbitrary file write or execution hijacking.

Amit Schendel
Amit Schendel
6 views•8 min read
•about 14 hours ago•GHSA-72R4-9C5J-MJ57
7.1

GHSA-72R4-9C5J-MJ57: Arbitrary File Deletion via Path Traversal in pnpm patch-remove

A path traversal vulnerability in the pnpm package manager's 'patch-remove' command allows an attacker to delete arbitrary files outside the patches directory. By manipulating configuration files like package.json, an attacker can specify a traversal path that the application deletes recursively without validating the path's containment.

Alon Barad
Alon Barad
6 views•5 min read
•about 15 hours ago•GHSA-QRV3-253H-G69C
8.3

GHSA-QRV3-253H-G69C: Path Traversal and Arbitrary Symlink Creation via configDependencies in pnpm

A high-severity path traversal vulnerability exists in the pnpm package manager. By crafting a malicious lockfile (pnpm-lock.yaml) with path traversal characters in the configDependencies block, an attacker can create arbitrary directories and symlinks outside the project's node_modules/.pnpm-config directory. This exploitation happens automatically during pnpm installation, even when executing with scripts disabled via the --ignore-scripts flag.

Amit Schendel
Amit Schendel
6 views•7 min read