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

CVE-2026-35621: OpenClaw: Gateway operator.write Can Reach Admin-Class Channel Allowlist Persistence via chat.send

highGHSA-94pw-c6m8-p9p9

In OpenClaw 2026.3.23 and earlier, a gateway client with only operator.write could change channel allowlists by sending /allowlist through chat.send. Direct config.patch needs operator.admin, but /allowlist did not. The change widens who may message the agent over DM or group channels. Upgrade to 2026.3.24.

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

What an attacker can do

The gateway splits scopes: chat.send is a write action, and persistent config changes are admin-only. chat.send builds an internal message context with CommandAuthorized set to true and carries GatewayClientScopes into the reply pipeline. resolveCommandAuthorization then treats the sender as authorized unless a stricter commands.allowFrom override exists.

The shared /allowlist add|remove command accepts that generic authorization. It clones the config, calls plugin.allowlist.applyConfigEdit, validates the result and saves it with writeConfigFile. No check ran for operator.admin first. The /config and /plugins commands already had that check; /allowlist was missed (CWE-269).

An authenticated write-scoped client can therefore add entries to the allowFrom and groupAllowFrom lists of channels that use the shared plumbing. Config.patch refuses the same client with "missing scope: operator.admin". Widening an allowlist lets new people or groups talk to the agent, and anyone who can instruct the agent can steer what it does with its tools. The attacker needs valid gateway credentials with write scope, not admin.

Who is affected

The openclaw npm package at 2026.3.23 and earlier. The exposure applies where gateway clients, such as integrations or shared tokens, hold operator.write but not operator.admin, and channels use the shared /allowlist command. Check the version:

npm ls openclaw
openclaw --version

openclaw

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

How to fix it

Upgrade to openclaw 2026.3.24 or later:

npm install -g [email protected]

The advisory states the fix shipped in 2026.3.24 and links no commit. Its remediation is a sink-side check that requires operator.admin for internal gateway channels before /allowlist add|remove applies config edits or calls writeConfigFile, as /config and /plugins already do. The advisory notes the configWrites policy and pairing-store checks are secondary controls and do not replace the scope check. After upgrading, review your allowlists.

How to tell if you were hit

Review the channel allowFrom and groupAllowFrom entries in your OpenClaw config for DM or group IDs you did not add, and compare config file modification times to admin changes. Search gateway logs and session transcripts for chat.send messages that start with /allowlist add or /allowlist remove from write-scoped clients.

Beam records agent activity and the commands the agent runs, which helps trace what newly allowed senders asked the agent to do.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Fixed in OpenClaw 2026.3.24, the current shipping release.

Summary

The shared /allowlist command persists channel authorization config through writeConfigFile(...) but does not re-validate gateway client scopes for internal gateway callers. Because chat.send is intentionally reachable to operator.write callers and still creates a generic command-authorized internal context, an authenticated write-scoped gateway client can indirectly mutate channel allowFrom and groupAllowFrom policy that direct config.patch correctly reserves to operator.admin.

This is not just a generic code smell. The current code already shows the intended boundary by adding sink-side internal admin checks to shared /config and /plugins writes, but /allowlist was left behind.

Details

The gateway's documented scope split is clear:

  • chat.send is a write-scoped action.
  • direct config mutation is an admin-scoped action.

The vulnerable path is:

  1. A gateway client authenticates with operator.write.
  2. The client calls chat.send, which is intentionally allowed for that scope.
  3. chat.send builds an internal message context with CommandAuthorized: true and carries GatewayClientScopes into the reply pipeline.
  4. resolveCommandAuthorization(...) converts that internal message into isAuthorizedSender=true in the common case where no stricter commands.allowFrom override is configured.
  5. /allowlist add|remove accepts that generic command authorization and proceeds into its config-backed edit path.
  6. The handler clones the parsed config, calls plugin.allowlist.applyConfigEdit(...), validates the result, and persists it with writeConfigFile(validated.config).
  7. No sink-side check requires operator.admin before the persistent write occurs.

That creates a direct control-plane mismatch:

  • config.patch rejects the same caller with missing scope: operator.admin.
  • /allowlist add dm ... or /allowlist add group ... reached through chat.send can still rewrite channel authorization state.

Impact

  • A gateway client intentionally limited to operator.write can persist first-party channel authorization policy.
  • The caller can widen DM or group allowlists for channels using the shared /allowlist plumbing.
  • This weakens the repo's documented control-plane privilege split between ordinary write actions and admin-only persistent authorization mutation.

Remediation

1) Add the Missing Sink-Side Internal Admin Check to /allowlist

Mirror the existing hardened pattern from /config and /plugins.

Before any config-backed /allowlist add|remove write, require:

  • operator.admin for internal gateway channels

This should happen before plugin.allowlist.applyConfigEdit(...) and before writeConfigFile(...).

2) Keep Pairing-Store and Config-Write Policy Checks, but Do Not Treat Them as Scope Enforcement

configWrites policy and pairing-store behavior are useful secondary controls, but they do not replace the missing privilege check between operator.write and operator.admin.

Credited to zpbrent.

Questions

Does GHSA-94pw-c6m8-p9p9 have a CVE?

The advisory says no CVE is assigned. You may see CVE-2026-35621 used for it in data feeds, so match on the GHSA id as well.

What does the attacker need?

An authenticated gateway client with operator.write. They do not need operator.admin, which is the scope that config.patch demands.

Which version is fixed?

2026.3.24. Versions up to 2026.3.23 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 entries