CVE-2026-35645: OpenClaw: Gateway Plugin Subagent Fallback `deleteSession` Uses Synthetic `operator.admin`
In OpenClaw 2026.3.24 and earlier, a plugin's subagent deleteSession call could run sessions.delete with a made-up operator.admin scope when no request-scoped client existed. A low-privilege caller could delete sessions that needed admin rights. The package data lists 2026.3.28 as the patched version.
Published Mar 29, 2026 · Updated Apr 18, 2026 · Analysis Oct 31, 2026
What an attacker can do
OpenClaw gateway methods check operator scopes. The sessions.delete method requires operator.admin. In createGatewaySubagentRuntime() in src/gateway/server-plugins.ts, the fallback deleteSession path passed syntheticScopes: [ADMIN_SCOPE] to dispatchGatewayMethod when there was no request-scoped client. The gateway therefore treated the call as an admin call, whatever the real caller could do.
The attacker needs a low-privilege account or plugin context that can reach the subagent deleteSession path. They then delete sessions, and optionally transcripts (the call carries a deleteTranscript flag), without holding operator.admin. The CVSS 3.1 vector (8.1) shows high integrity and availability impact with no confidentiality impact. The CWEs are incorrect privilege assignment (CWE-266), misuse of privileged APIs (CWE-648) and incorrect authorization (CWE-863).
The practical loss is destroyed session history and audit trail on a shared gateway, which matters for teams that rely on transcripts to review what their agents did.
Who is affected
openclaw 2026.3.24 and earlier. The risk exists where plugins use the gateway subagent runtime and a low-privilege user or plugin can trigger deleteSession. Check the installed version:
npm ls openclawopenclaw
- Ecosystem
- npm
- Affected
- <= 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 body names 2026.3.25 as the first fixed release, while the package data says 2026.3.28; use the later one or newer. Commit b5d785f1a59a removes the synthetic admin scope. deleteSession now relies on the caller's request scope, so a caller without admin is rejected with "missing scope: operator.admin". Plugins that deleted sessions through this fallback without admin rights will now fail and need an admin-scoped caller.
How to tell if you were hit
Review gateway logs for sessions.delete calls that came from plugin subagent runtimes, and compare them with the operators who hold operator.admin. Look for sessions or transcripts that vanished without an admin action. After upgrading, rejected attempts show the message "missing scope: operator.admin".
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Gateway Plugin Subagent Fallback deleteSession Uses Synthetic operator.admin
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
Gateway plugin subagent fallback deleteSession previously dispatched sessions.delete with a synthetic operator.admin runtime scope when no request-scoped client existed. Commit b5d785f1a59a56c3471f2cef328f7c9a6c15f3e7 binds deletion to the caller scope instead of minting admin scope.
Verified vulnerable on tag v2026.3.24 and fixed on main by commit b5d785f1a59a56c3471f2cef328f7c9a6c15f3e7.
Fix Commit(s)
b5d785f1a59a56c3471f2cef328f7c9a6c15f3e7
Credited to zpbrent.
Questions
- What is a synthetic operator.admin scope?
It is an admin scope that the gateway code added itself to a dispatched call. It did not come from the caller's credentials, so the scope check always passed on that path.
- Does CVE-2026-35645 give access to session contents?
The vector shows no confidentiality impact. The flaw allows deletion, not reading. The fix is in dispatch scope handling only.
- Is a remote attacker with no account enough?
No. The vector needs low privileges. The attacker needs some authenticated or plugin-level access that reaches the fallback deleteSession path.
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
