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

CVE-2026-28473: OpenClaw authorization bypass: operator.write can resolve exec approvals via chat.send -> /approve

highCVSS 4.0 7.2 · 3.1 7.2GHSA-mqpw-46fh-299h

In OpenClaw before 2026.2.2, a gateway client with only the `operator.write` scope could approve or deny pending exec approvals by sending the built-in `/approve` chat command. The direct RPC was scoped correctly, but the chat path was not. Shared setups with differently scoped tokens are affected. Upgrade `openclaw` to 2026.2.2.

Published Feb 17, 2026 · Updated Mar 6, 2026 · Analysis Nov 1, 2026

What an attacker can do

OpenClaw splits gateway permissions into scopes. operator.write allows chat. operator.approvals allows resolving exec approval requests, the prompts that gate commands the agent wants to run. The RPC exec.approval.resolve checks for operator.approvals.

The /approve chat command did not. It called exec.approval.resolve through an internal privileged gateway client, so the scope check ran against the internal client, not the person who typed the command. A device token holding only operator.write could therefore send a chat message that contained /approve and resolve pending approvals.

The practical result is that a client meant only to chat can approve commands the agent wants to execute on the host, or deny them. This undoes the human-in-the-loop control for exec. The attacker needs a valid write-scoped token (PR:L or PR:H depending on the vector). The advisory says it matters mostly for shared or multi-client setups where tokens are scoped differently, and single-operator installs are typically less affected.

Who is affected

The npm package openclaw below 2026.2.2. You are exposed when you issue device tokens scoped only to operator.write to clients that you do not trust to approve exec requests, and the text commands feature is on.

npm ls -g openclaw
openclaw --version

openclaw

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

How to fix it

Upgrade to 2026.2.2.

npm install -g [email protected]

Commit efe2a464 changes src/auto-reply/reply/commands-approve.ts: when /approve comes from a gateway client, the client must hold operator.approvals or operator.admin. Tests are in commands-approve.test.ts.

If you cannot upgrade, the advisory gives these workarounds: do not issue write-only device tokens to untrusted clients, set commands.text=false to disable text commands, or restrict access to the webchat and control UI.

How to tell if you were hit

Review gateway logs for /approve chat messages sent by clients whose tokens lack operator.approvals, and for exec approval resolutions that follow a chat message from such a client. Compare who approved each past exec request with who should have had that right. Look at which commands ran after approvals that came from write-scoped device tokens.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

What this means (plain language)

If you give a client “chat/write” access to the gateway (operator.write) but you do not intend to let that client approve exec requests (operator.approvals), affected versions could still let that client approve/deny a pending exec approval by sending the /approve chat command.

This is mainly relevant for shared or multi-client setups where different tokens are intentionally scoped differently. Single-operator installs are typically less impacted.

Technical summary

A gateway client authenticated with a device token scoped only to operator.write (without operator.approvals) could approve/deny pending exec approval requests by sending a chat message containing the built-in /approve command.

exec.approval.resolve is correctly scoped to operator.approvals for direct RPC calls, but the /approve command path invoked it via an internal privileged gateway client.

Affected Packages / Versions

  • openclaw (npm): < 2026.2.2

Fix

  • Fixed in openclaw 2026.2.2.
  • Fix commit(s): efe2a464afcff55bb5a95b959e6bd9ec0fef086e.
  • Change: when /approve is invoked from gateway clients (webchat/internal channel), it now requires the requesting client to have operator.approvals (or operator.admin).

Workarounds

  • Upgrade to openclaw >= 2026.2.2.
  • If you cannot upgrade: avoid issuing write-only device tokens to untrusted clients; disable text commands (commands.text=false) or restrict access to the webchat/control UI.

References

  • Fix: src/auto-reply/reply/commands-approve.ts
  • Coverage: src/auto-reply/reply/commands-approve.test.ts

Release Process Note

This advisory is kept in draft; once the fixed npm versions are available, it can be published without further edits.

Thanks @yueyueL for reporting.

Credited to yueyueL.

Questions

What is the difference between operator.write and operator.approvals?

operator.write lets a client chat with the gateway. operator.approvals lets it resolve pending exec approvals. This flaw let the first do the job of the second through /approve.

Is there a workaround if I cannot upgrade?

Yes, per the advisory: do not give write-only device tokens to untrusted clients, set commands.text=false, or restrict access to the webchat and control UI.

Does CVE-2026-28473 affect single-operator installs?

The advisory says single-operator installs are typically less affected, since the problem arises when tokens are scoped differently between clients.

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