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

CVE-2026-41344: OpenClaw: Gateway `operator.write` can reach admin-only persisted `verboseLevel` via `chat.send` `/verbose`

mediumCVSS 4.0 5.3 · 3.1 5.4GHSA-5h2w-qmfp-ggp6

In OpenClaw 2026.3.24 and earlier, a gateway client with only the operator.write scope could send /verbose through chat.send and save a verbose level on the session. That change is admin-only through sessions.patch. Later runs then print more reasoning and tool output than the operator intended. Upgrade to 2026.3.28.

Published Mar 31, 2026 · Updated May 8, 2026 · Analysis Oct 31, 2026

What an attacker can do

OpenClaw's gateway scopes callers. Writing a stored session setting such as verboseLevel through sessions.patch needs operator.admin. The chat.send path handled the inline /verbose directive in src/auto-reply/reply/directive-handling.impl.ts and saved it for any caller that could write. This is an access control gap (CWE-863): the same mutation had two entry points with different checks.

A write-scoped caller could set /verbose full and have it persist for the session. Later agent runs would then emit extra reasoning and tool output into replies, which can expose details the operator meant to hide, such as tool arguments and results. The effect is limited to disclosure and a changed session default. It does not give code execution. The attacker needs valid gateway credentials with operator.write, and no user interaction. That explains the medium rating.

Who is affected

The openclaw npm package at 2026.3.24 and earlier, for deployments where gateway callers hold operator.write without operator.admin, for example integrations, bots or shared clients. Check the version:

npm ls openclaw
openclaw --version

If every caller already has operator.admin, the flaw gives them nothing extra.

openclaw

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 or later:

npm install -g [email protected]

Commit c603123528 ("fix(gateway): require admin for persisted verbose defaults") makes persistence require operator.admin for internal gateway callers. A write-scoped /verbose is still accepted, but applies to the current reply only, and the reply says: "Verbose defaults require operator.admin for internal gateway callers; skipped persistence." No workaround is given in the advisory.

How to tell if you were hit

Inspect the session store for sessions where verboseLevel is set, and compare against sessions an admin configured. Review gateway logs for chat.send calls whose message begins with /verbose from clients that have only operator.write. Check recent replies for unusually detailed tool output. After upgrading, reset verboseLevel on any session you did not set deliberately.

Beam records agent tool calls and shell commands, which helps review what the extra verbose output revealed about agent activity.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

The chat.send path let authorized write-scoped callers persist /verbose session overrides even though the same stored session mutation is admin-only through sessions.patch.

Impact

A write-scoped gateway caller could persist verbose output for later runs and expose more reasoning or tool output than the operator intended.

Affected Component

src/auto-reply/reply/directive-handling.impl.ts, src/gateway/sessions-patch.ts

Fixed Versions

  • Affected: <= 2026.3.24
  • Patched: >= 2026.3.28
  • Latest stable 2026.3.28 contains the fix.

Fix

Fixed by commit c603123528 (fix(gateway): require admin for persisted verbose defaults).

Credited to zpbrent.

Questions

Does CVE-2026-41344 let a caller run commands?

No. It lets a write-scoped caller persist a verbose setting that only admins should save. The impact is extra reasoning and tool output in later runs.

Who can exploit it?

A gateway client with a valid operator.write scope. The CVSS vector needs low privileges and no user interaction, over the network.

What happens to /verbose after the fix?

A write-scoped /verbose is acknowledged for the current reply only. Persisting it needs operator.admin.

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