GHSA-5r8f-96gm-5j6g: OpenClaw Gateway `operator.write` can reach admin-only session reset via `chat.send` `/reset`
In OpenClaw up to 2026.3.24, a gateway caller with only `operator.write` scope could send `/reset` through `chat.send` and rotate a session, an action that should need admin scope. The prior transcript state is archived and a new session id is forced. Fixed in 2026.3.28.
Published Apr 1, 2026 · Analysis Oct 30, 2026
What an attacker can do
OpenClaw's gateway has a direct session reset that is an admin-only control-plane operation. The chat.send method, which write-scoped callers may use, passes messages through the reply pipeline, and that pipeline reuses command authorization. A /reset command sent in a chat message therefore triggered session rotation without the caller holding admin scope. The affected code is in src/gateway/server-methods/chat.ts and src/auto-reply/reply/session.ts.
The attacker needs a valid gateway credential with operator.write, which is a lower privilege than admin, and network access to the gateway. They can then reset a target session. The old transcript state is archived and the session continues under a new id. The CVSS 4.0 vector reflects that: high integrity impact, low availability impact, no confidentiality impact.
In practice, a lower-privileged operator, integration or compromised client token can interrupt or wipe the live context of another session that it should not control. That drops the agent's working context mid-task. The advisory does not report data disclosure or code execution.
Who is affected
openclaw (npm) up to and including 2026.3.24. Gateways that issue operator.write credentials to clients that are not admins are the ones at risk. 2026.3.28 contains the fix.
npm ls openclawReview which tokens and integrations hold operator.write.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.24
- Fixed in
- 2026.3.28
- Check
npm ls openclaw
How to fix it
Upgrade to 2026.3.28 or later:
npm install [email protected]The fix is commit be00fcf, "Gateway: align chat.send reset scope checks", which makes the /reset path via chat.send follow the same scope check as direct session reset. The advisory names no workaround. Until you upgrade, limit operator.write credentials to callers you trust with session control.
How to tell if you were hit
Look in gateway logs for chat.send calls with a /reset message from clients that hold write but not admin scope, followed by a session id change for the target session. Look for archived transcripts you did not expect, and sessions that restarted without an admin action. The advisory gives no log format.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The chat.send path reused command authorization to trigger /reset session rotation even though direct session reset is an admin-only control-plane operation.
Impact
A write-scoped gateway caller could rotate a target session, archive the prior transcript state, and force a new session id without admin scope.
Affected Component
src/gateway/server-methods/chat.ts, src/auto-reply/reply/session.ts
Fixed Versions
- Affected:
<= 2026.3.24 - Patched:
>= 2026.3.28 - Latest stable
2026.3.28contains the fix.
Fix
Fixed by commit be00fcfccb (Gateway: align chat.send reset scope checks).
Credited to zpbrent.
Questions
- Does this need admin access?
No, that is the flaw. A caller with
operator.writescope could reach an admin-only reset by sending/resetthroughchat.send.- Is data exposed?
The advisory describes session rotation and archiving of the prior transcript state. It reports no disclosure of data and no code execution.
- Which version fixes GHSA-5r8f-96gm-5j6g?
openclaw 2026.3.28. Versions up to 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
