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

GHSA-f6h3-846h-2r8w: OpenClaw's elevated allowFrom accepted broader identity signals than specified within sender-scoped authorization

mediumCVSS 4.0 5.3

In OpenClaw before 2026.2.22, `tools.elevated.allowFrom` matched more identity fields than the sender's own identity, including recipient routing fields and mutable display names. A sender could be treated as approved for elevated mode when they should not be. Upgrade `openclaw` to 2026.2.22.

Published Mar 4, 2026 · Analysis Oct 31, 2026

What an attacker can do

Elevated mode lets approved senders run higher-privilege agent actions. The tools.elevated.allowFrom allowlist is supposed to match who sent the message. In affected versions it also considered recipient routing fields such as ctx.To, and it matched mutable sender metadata (SenderName, SenderUsername, SenderTag) without any explicit opt-in (CWE-639).

An attacker who is a low-privilege user of a channel could set a display name or username to match an allowlist entry, or arrange a recipient value that matched, and so be treated as an elevated sender. Names and handles are controlled by the user, not by the platform, which is what makes them weak identity.

The maintainers frame this as authorization hardening and defense in depth, because OpenClaw is mostly used in 1:1 chats or trusted group chats. The CVSS 4.0 vector shows low privileges required and low integrity impact. Exposure is highest in shared or public group channels where elevated mode is enabled.

Who is affected

The openclaw npm package below 2026.2.22 (2026.2.21-2 was the latest published version at triage), with tools.elevated.allowFrom configured. Check with:

npm ls openclaw

Then look at your tools.elevated.allowFrom entries. Entries that are plain names or usernames relied on the broad matching.

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 [email protected]

The fix commit is 6817c0ec7b4fa830123d4f5c340f075a4bd04ee2. By default, elevated authorization now matches only SenderId, From and SenderE164, and ignores ctx.To. Mutable fields need explicit prefixes in the allowlist: name:, username: or tag:. Identity prefixes id:, from: and e164: are also supported. After upgrading, rewrite allowlist entries to use stable IDs.

How to tell if you were hit

Review elevated-mode actions in agent logs and match the requesting sender against your intended allowlist. Look for senders whose display name or username equals an allowlist entry but whose sender ID differs. The advisory names no log signature and no exploitation in the wild.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

In certain elevated-mode configurations, tools.elevated.allowFrom accepted broader identity signals than intended. The fix tightens matching to sender-scoped identity by default and makes mutable metadata matching explicit.

Context

OpenClaw is commonly used in 1:1 chats or trusted group chats. In that intended model, this issue is best treated as authorization hardening / defense-in-depth for elevated sender approval.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Latest published npm version at triage: 2026.2.21-2
  • Affected versions: <= 2026.2.21-2
  • Planned patched version (pre-set for publish-ready advisory): 2026.2.22

Details

Elevated sender authorization now matches sender-scoped identity values only by default (SenderId, From, SenderE164) and no longer considers recipient routing fields such as ctx.To.

Mutable sender metadata (SenderName, SenderUsername, SenderTag) now requires explicit allowlist prefixes (name:, username:, tag:). Explicit identity prefixes are also supported (id:, from:, e164:).

Fix Commit(s)

  • 6817c0ec7b4fa830123d4f5c340f075a4bd04ee2

Release Process Note

The advisory patched_versions is pre-set to the planned next release (2026.2.22). Once npm [email protected] is published, this advisory can be published without additional content edits.

OpenClaw thanks @jiseoung for reporting.

Credited to jiseoung.

Questions

What changed in how allowFrom matches senders?

Only SenderId, From and SenderE164 match by default. ctx.To is ignored, and name, username and tag matching needs explicit name:, username: or tag: prefixes.

Is GHSA-f6h3-846h-2r8w a critical flaw?

It is rated medium. The maintainers call it authorization hardening for elevated sender approval, given typical 1:1 or trusted-group use.

Do I need to edit my config after upgrading?

If your allowlist relied on display names or usernames, yes. Add the explicit prefixes, or better, switch to stable IDs like id: or e164: entries.

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