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

GHSA-pjvx-rx66-r3fg: OpenClaw: Cross-account sender authorization expansion in `/allowlist ... --store` account scoping

mediumCVSS 3.1 5.4

In OpenClaw 2026.3.2 and earlier, /allowlist ... --store wrote entries to the legacy unscoped pairing store instead of the chosen channel account. Because the default account still merges those legacy entries, a sender allowed on one account could silently become authorized on the default account. Fixed in OpenClaw 2026.3.7.

Published Mar 9, 2026 · Analysis Oct 31, 2026

What an attacker can do

The /allowlist handler in src/auto-reply/reply/commands-allowlist.ts resolved the selected accountId for reads. Its two store-write paths dropped the accountId and wrote to the legacy unscoped allowlist. In src/pairing/pairing-store.ts, default-account reads merge legacy unscoped entries. An entry meant for, say, a work account therefore also authorized that sender on default.

The effect is authorization expansion across channel accounts. A person added for a limited account can message through the default account, which may have different agents, tools or trust. The attacker does not exploit this alone: an already-authorized user who can run /allowlist edits must make the write. The operator might do it by accident, or an agent might do it after prompt injection. That is why the maintainers rate it medium (5.4, low confidentiality and integrity impact).

Who is affected

The npm package openclaw, versions <= 2026.3.2, in setups with more than one channel account where /allowlist is used with --store. Single-account setups have no other account to leak into. Check the version:

npm ls -g openclaw
openclaw --version

Entries written by affected versions stay in the legacy store after the upgrade.

openclaw

Ecosystem
npm
Affected
<= 2026.3.2
Fixed in
2026.3.7
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.3.7, published to npm on March 8, 2026.

npm install -g [email protected]

Commit 70da80b adds updatePairingStoreAllowlist, which passes the resolved accountId when adding or removing store entries. Removing an entry on the default account now also clears the legacy unscoped copy. The sources give no other workaround. After upgrading, review the legacy pairing allowlist and remove sender entries that were meant for a single account.

How to tell if you were hit

List the pairing allowlist store entries and compare them with the accounts you meant to authorize. Look for senders that appear in the unscoped legacy store, or that can message the default account but were only added with --account for another. Search command logs for /allowlist add or remove with --store, and note which account each ran against. Beam records agent shell commands and file access, which can show whether an agent changed the allowlist files.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

/allowlist ... --store resolved the selected channel accountId for reads, but store writes still dropped that accountId and wrote into the legacy unscoped pairing allowlist store.

Because default-account reads still merge legacy unscoped entries, a store entry intended for one account could silently authorize the same sender on the default account.

This is a real cross-account sender-authorization scoping bug. Severity is set to medium because exploitation requires an already-authorized user who can run /allowlist edits.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Latest published version checked: 2026.3.2
  • Affected versions: <= 2026.3.2
  • Fixed on main: March 7, 2026 in 70da80bcb5574a10925469048d2ebb2abf882e73
  • Patched release: 2026.3.7

Details

The affected path was:

  • src/auto-reply/reply/commands-allowlist.ts:386-393 resolved accountId and read store state with it
  • src/auto-reply/reply/commands-allowlist.ts:697-702 and src/auto-reply/reply/commands-allowlist.ts:730-733 wrote store state without passing accountId
  • src/pairing/pairing-store.ts:231-234 and src/pairing/pairing-store.ts:534-554 still merged legacy unscoped allowlist entries into the default account

The fix scopes /allowlist ... --store writes to the resolved account and clears legacy default-account store entries on removal so legacy reads no longer create cross-account authorization bleed-through.

Impact

  • Vulnerability class: improper authorization scoping / incorrect authorization
  • Exploitation requires: an already-authorized sender who can run /allowlist edits
  • Security effect: unintended authorization expansion from one channel account into default

Fix Commit(s)

  • 70da80bcb5574a10925469048d2ebb2abf882e73 — scope /allowlist ... --store writes by account and clean up legacy default-account removals

Release Process Note

npm 2026.3.7 was published on March 8, 2026. This advisory is fixed in the released package.

Thanks @tdjackey for reporting.

Credited to tdjackey.

Questions

Is OpenClaw 2026.3.2 affected by this allowlist scoping bug?

Yes. Versions up to and including 2026.3.2 are affected. The patched release is 2026.3.7.

Who can trigger it?

An already-authorized sender who can run /allowlist edits. It is a scoping bug in what those edits do, not a way in for outsiders.

Does upgrading remove the bad entries?

The sources do not say so. The fix stops new bleed-through and clears legacy entries on default-account removal. Review the existing store by hand.

Does this have a CVE id?

Not in our data. It is tracked as GHSA-pjvx-rx66-r3fg.

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