AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-32039: OpenClaw's typed sender-key matching for toolsBySender prevents identity-collision policy bypass

mediumCVSS 4.0 6.0 · 3.1 5.9GHSA-wpph-cjgr-7c39

OpenClaw before 2026.2.22 can match a privileged channels.*.groups.*.toolsBySender policy by a mutable name, such as senderName or senderUsername, when the config uses untyped keys. A group member who forces a collision inherits another sender's stronger tool permissions. Upgrade to 2026.2.22.

Published Mar 3, 2026 · Updated Mar 30, 2026 · Analysis Nov 8, 2026

What an attacker can do

toolsBySender lets an operator give different tool permissions to different senders in a group chat. With untyped keys, the matcher compared the key against several identity values, including display name and username. These are values a sender can often choose or change. An attacker who sets a name or username equal to a privileged sender's key matches that sender's policy and gets the tools meant for them.

The flaw is an authorization bypass in group tool policy, not a code bug in a tool. What the attacker gains depends on the policy: if the privileged entry allows shell execution, file access or other powerful tools, the attacker can ask the agent to use them from a group chat. Only deployments that use toolsBySender with untyped keys are exposed. The attacker needs to be in the group and be able to set a colliding identifier.

The fix adds typed keys: id:, e164:, username: and name:. Legacy untyped keys stay on a deprecated path that matches the ID only.

Who is affected

The npm package openclaw before 2026.2.22 (up to and including 2026.2.21-2), where a config uses toolsBySender with untyped keys under channels.*.groups.*. Check the version and look at your config:

npm ls -g openclaw

Search the config for toolsBySender entries whose keys have no id:, e164:, username: or name: prefix.

openclaw

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

How to fix it

Upgrade to openclaw 2026.2.22:

npm install -g [email protected]

Then rewrite toolsBySender keys with typed prefixes, preferring id: for stable identifiers, because legacy untyped keys are deprecated and match IDs only. The advisory lists no other workaround.

How to tell if you were hit

Review group configs for untyped toolsBySender keys. Check chat and gateway logs for sensitive tool calls made by senders whose display name or username matches a privileged key but whose ID does not. Beam records agent shell commands, file access and MCP tool calls, so you can see what the agent ran after such a message.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

channels.*.groups.*.toolsBySender could match a privileged sender policy using a colliding mutable identity value (for example senderName or senderUsername) when deployments used untyped keys.

The fix introduces explicit typed sender keys (id:, e164:, username:, name:), keeps legacy untyped keys on a deprecated ID-only path, and adds regression coverage to prevent cross-identifier collisions.

Affected Packages / Versions

  • Package: npm openclaw
  • Affected versions: <= 2026.2.21-2
  • Latest published npm version at triage time (February 22, 2026): 2026.2.21-2
  • Patched version (planned next release): 2026.2.22

Impact

This is a sender-authorization bypass in group tool policy matching for deployments that use toolsBySender with untyped keys. Under those conditions, an attacker could inherit stronger tool permissions intended for another sender if they can force an identifier collision.

Fix Commit(s)

  • 5547a2275cb69413af3b62c795b93214fe913b57

Release Process Note

patched_versions is pre-set to the planned next release (2026.2.22). Once that npm release is published, this advisory should only need publishing.

OpenClaw thanks @jiseoung for reporting.

Credited to jiseoung.

Questions

Which OpenClaw version fixes CVE-2026-32039?

2026.2.22. Versions up to 2026.2.21-2 are affected.

Am I affected if I do not use toolsBySender?

No. The bypass applies to deployments that use toolsBySender with untyped keys.

What are typed sender keys?

Keys with an explicit prefix: id:, e164:, username: or name:. They stop one kind of identifier from matching another.

Does the attacker need to be in the group?

Yes. They need to send messages in the group and to control an identifier that collides with a privileged sender's key.

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