CVE-2026-35657: OpenClaw: Gateway HTTP Session History Route Bypasses Operator Read Scope
OpenClaw's gateway route /sessions/:sessionKey/history authenticated the bearer token but skipped the operator.read check that chat.history enforces over WebSocket. A token without read scope could fetch session history over HTTP. Fixed in OpenClaw 2026.3.25.
Published Mar 29, 2026 · Updated Apr 10, 2026 · Analysis Nov 21, 2026
What an attacker can do
OpenClaw checks scopes on its WebSocket control plane: chat.history needs operator.read. The HTTP route for session history validated only the bearer token. A caller with a valid token but no read scope could request /sessions/:sessionKey/history and receive the conversation history for that session key.
That history is the transcript of what users and agents said and did in the session. It can contain prompts, pasted code, tool output and secrets that came up in the conversation. The attacker needs a valid gateway token and a session key. The CWE data points to a user-controlled key as part of the problem, which fits a caller who supplies a key they were not meant to read.
The flaw only reads. It does not write or run code. It matters most for teams that hand out narrow-scope tokens to integrations and expect the missing read scope to block transcript access. The advisory rates it medium.
Who is affected
The npm package openclaw at 2026.3.24 and earlier. The advisory notes the vulnerable behavior was verified on tag v2026.3.24, and that 2026.3.24 was the latest npm release at that time. Check the version:
npm ls -g openclaw
openclaw --versionopenclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.24
- Fixed in
- 2026.3.25
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.25 or later:
npm install -g [email protected]The fix is commit 1c45123231516fa50f8cf8522ba5ff2fb2ca7aea. In handleSessionHistoryHttpRequest, HTTP callers now declare scopes in an x-openclaw-scopes header, and the route calls authorizeOperatorScopesForMethod for chat.history before it loads the session. A request without operator.read gets a 403. The advisory lists no workaround.
How to tell if you were hit
Search gateway access logs for GET requests to /sessions/ ending in /history from tokens that should not have read scope. After upgrading, a request without the right scope returns 403 with a missing scope: operator.read message, which shows which clients were relying on the gap. Review which tokens were issued without read scope.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Gateway HTTP Session History Route Bypasses Operator Read Scope
Affected Packages / Versions
- Package:
openclaw - Affected versions:
<= 2026.3.24 - First patched version:
2026.3.25 - Latest published npm version at verification time:
2026.3.24
Details
The HTTP /sessions/:sessionKey/history route previously authenticated bearer tokens but skipped the same operator.read check used by chat.history over WebSocket. Commit 1c45123231516fa50f8cf8522ba5ff2fb2ca7aea makes HTTP callers declare operator scopes and rejects history reads that do not include operator.read.
Verified vulnerable on tag v2026.3.24 and fixed on main by commit 1c45123231516fa50f8cf8522ba5ff2fb2ca7aea.
Fix Commit(s)
1c45123231516fa50f8cf8522ba5ff2fb2ca7aea
Credited to zpbrent.
Questions
- What can an attacker read through CVE-2026-35657?
The history of a session, reached through the HTTP session history route. It is a read-only exposure of session content.
- Is this the same as the /v1/models scope bypass?
It is a similar pattern on a different route. CVE-2026-35619 affects /v1/models and is fixed in 2026.3.24. This one needs 2026.3.25.
- How do clients pass scopes after the fix?
HTTP callers send an x-openclaw-scopes header with a comma-separated list. A request without operator.read is rejected with 403.
- Which version fixes it?
OpenClaw 2026.3.25. Releases up to and including 2026.3.24 are affected.
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
