NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-35660: OpenClaw: Gateway agent /reset exposes admin session reset to operator.write callers

highCVSS 4.0 7.1GHSA-wq58-2pvg-5h4f

Before OpenClaw 2026.3.23, a Gateway client with only the operator.write scope could reset any session by sending /reset or /new to the agent RPC. The direct sessions.reset RPC correctly demands operator.admin. Upgrade openclaw to 2026.3.23 or later.

Published Mar 26, 2026 · Updated Apr 10, 2026 · Analysis Oct 31, 2026

What an attacker can do

The flaw is a missing authorization check (CWE-862) in src/gateway/server-methods/agent.ts. A /reset or /new message with an explicit sessionKey went straight to performGatewaySessionReset(). The guard that sessions.reset applies, operator.admin, was never checked on this route.

An attacker needs a Gateway credential with operator.write. That scope is meant for sending messages, not administering sessions. With it, they can reset another conversation by naming its session key, which ends that session's context and starts a new one. The CVSS 4.0 vector (PR:L, VI:H) scores integrity only, with no confidentiality or availability loss.

In practice this matters for shared gateways where write-scoped tokens go to bots, integrations or less trusted users. Such a user can wipe agent history and state they should not be able to touch, which can disrupt work or erase context that safety instructions rely on.

Who is affected

Affected: the openclaw npm package before 2026.3.23. Note that this fix landed one release after most of the other March 2026 OpenClaw advisories, so 2026.3.22 is still vulnerable. Check your version:

npm ls openclaw
openclaw --version

The risk applies only to Gateways where some callers hold operator.write without operator.admin.

openclaw

Ecosystem
npm
Affected
< 2026.3.23
Fixed in
2026.3.23
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.3.23 or later; 2026.3.23-2 also contains the fix.

npm install -g openclaw@latest

Fix commit 50f6a2f136fed85b58548a38f7a3dbb98d2cd1a0, "fix(gateway): require admin for agent session reset", adds resolveCanResetSessionFromClient. Write-scoped callers now get an INVALID_REQUEST error with the message "missing scope: operator.admin". The advisory lists no workaround; until you upgrade, limit who holds operator.write tokens.

How to tell if you were hit

Review Gateway logs for agent RPC calls whose message is /reset or /new with an explicit sessionKey, sent by clients that only have operator.write. Look for sessions whose ID changed or whose history ended without an admin action. After you upgrade, such attempts fail with "missing scope: operator.admin", so that string in logs shows someone is probing.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Before v2026.3.23, the Gateway agent RPC accepted /reset and /new for callers with only operator.write, even though the direct sessions.reset RPC correctly requires operator.admin.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected: < 2026.3.23
  • Fixed: >= 2026.3.23
  • Latest released tag checked: v2026.3.23-2 (630f1479c44f78484dfa21bb407cbe6f171dac87)
  • Latest published npm version checked: 2026.3.23-2

Root Cause

The vulnerable path lived in src/gateway/server-methods/agent.ts. A /reset or /new message with an explicit sessionKey reached performGatewaySessionReset(...) without enforcing the same operator.admin guard used by sessions.reset.

Fix Commit(s)

  • 50f6a2f136fed85b58548a38f7a3dbb98d2cd1a0 — fix(gateway): require admin for agent session reset

Release Status

The fix commit is contained in released tags v2026.3.23 and v2026.3.23-2. The latest shipped tag and npm release both include the fix.

Code-Level Confirmation

  • src/gateway/server-methods/agent.ts now rejects /reset and /new for callers that do not have operator.admin before calling performGatewaySessionReset(...).
  • src/gateway/server-methods/agent.test.ts contains the regression test rejects /reset for write-scoped gateway callers.

Thanks @smaeljaish771 for reporting.

Credited to smaeljaish771, KeenSecurityLab.

Questions

Is OpenClaw 2026.3.22 affected by CVE-2026-35660?

Yes. The affected range is below 2026.3.23, so 2026.3.22 is still vulnerable. The first fixed release is 2026.3.23.

What privilege does an attacker need?

A Gateway credential with the operator.write scope. The CVSS vector requires low privileges and no user interaction.

Why does sessions.reset not have this issue?

The direct sessions.reset RPC already requires operator.admin. Only the /reset and /new commands sent through the agent RPC skipped that check.

Is it exploited in the wild?

No source reports exploitation, and it is not in CISA's KEV catalog. The EPSS score is 0.0027.

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 entries