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

CVE-2026-28471: OpenClaw has a Matrix allowlist bypass via displayName and cross-homeserver localpart matching

mediumCVSS 4.0 6.3 · 3.1 6.5GHSA-rmxw-jxxx-4cpc

In OpenClaw's optional Matrix plugin, the DM allowlist `channels.matrix.dm.allowFrom` was matched against the sender's display name and against the MXID localpart with the homeserver dropped. A remote Matrix user could pose as an allowed person and reach the agent pipeline. Versions from 2026.1.14-1 up to but not including 2026.2.2 are affected. Upgrade to 2026.2.2.

Published Feb 17, 2026 · Updated Mar 6, 2026 · Analysis Nov 1, 2026

What an attacker can do

The allowlist check did exact matching of each allowFrom entry against several values taken from the sender. Two of them were weak. The display name is chosen by the sender and is not unique. The localpart match ignored the server, so @alice:evil.example and @alice:trusted.example both reduced to alice.

If an operator listed a display name like "Alice" or a bare localpart like "alice", an outsider could register @alice: on their own homeserver, or set that display name, and send a DM that passed the allowlist. The message then entered OpenClaw's routing and agent pipeline as if it came from the trusted person (CWE-287, CWE-290).

The advisory says the practical impact depends on the Matrix channel policies and what is enabled downstream. If the agent can run tools, read files or send messages on request, the attacker inherits whatever a DM from an allowed user may trigger. Only deployments that installed and enabled the Matrix plugin, and that used non-MXID allowlist entries, are exposed.

Who is affected

The openclaw npm package, >= 2026.1.14-1 and < 2026.2.2, with the Matrix plugin installed and enabled and channels.matrix.dm.allowFrom containing display names or bare localparts. Allowlists made only of full MXIDs like @user:server, or *, are not affected by this confusion. Check:

npm ls openclaw

Then read the channels.matrix.dm.allowFrom list in your config.

openclaw

Ecosystem
npm
Affected
>= 2026.1.14-1, < 2026.2.2
Fixed in
2026.2.2
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.2.2 or later:

npm install -g [email protected]

The fix is commit 8f3bfbd1. The advisory also asks you to make sure Matrix allowlists contain only full MXIDs (@user:server) or *, never display names or bare localparts. Edit channels.matrix.dm.allowFrom accordingly, even after you upgrade.

How to tell if you were hit

Review channels.matrix.dm.allowFrom for entries without an @ and a server part. Then check Matrix DM logs and the agent's session history for messages from sender IDs on a homeserver other than your trusted one, where the localpart or display name equals an allowlist entry. Any agent action triggered by such a sender needs review, including tool calls and outbound messages.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

OpenClaw Matrix DM allowlist matching could be bypassed in certain configurations.

Matrix support ships as an optional plugin (not bundled with the core install), so this only affects deployments that have installed and enabled the Matrix plugin.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected: >= 2026.1.14-1, < 2026.2.2
  • Patched: >= 2026.2.2

Details

In affected versions, DM allowlist decisions could be made by exact-matching channels.matrix.dm.allowFrom entries against multiple sender-derived candidates, including:

  • The sender display name (attacker-controlled and non-unique)
  • The sender MXID localpart with the homeserver discarded, so @alice:evil.example and @alice:trusted.example both match alice

If an operator configured channels.matrix.dm.allowFrom with display names or bare localparts (for example, "Alice" or "alice"), a remote Matrix user may be able to impersonate an allowed identity for allowlist purposes and reach the routing/agent pipeline.

Impact

Matrix DM allowlist identity confusion. The practical impact depends on your Matrix channel policies and what capabilities are enabled downstream.

Mitigation

  • Upgrade to openclaw >= 2026.2.2.
  • Ensure Matrix allowlists contain only full Matrix user IDs (MXIDs) like @user:server (or *). Do not use display names or bare localparts.

Fix Commit(s)

  • 8f3bfbd1c4fb967a2ddb5b4b9a05784920814bcf

Release Process Note

The patched version is already published to npm; the advisory can be published once you're ready.

Thanks @MegaManSec (https://joshua.hu) of AISLE Research Team for reporting.

Credited to MegaManSec.

Questions

Does this affect OpenClaw without the Matrix plugin?

No. Matrix support is an optional plugin that is not bundled with the core install. Only deployments that installed and enabled it are affected.

What allowlist entries are safe?

Full Matrix user IDs such as @user:server, or *. Display names and bare localparts are what the attack abuses.

Can the attacker run commands?

The advisory does not say. Their DM reaches the routing and agent pipeline as an allowed sender, so the effect depends on what that pipeline lets an allowed user do.

Is it exploited in the wild?

No source reports exploitation, and it is not in CISA's KEV catalog.

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