GHSA-4cqv-h74h-93j4: OpenClaw has a Discord `allowFrom` slug-collision authorization bypass
OpenClaw up to 2026.2.21-2 matched Discord allowlist entries written as names or tags by normalizing them to slugs. Different tags could collapse to the same slug, so a user you did not list could pass a name-based `allowFrom` entry. Upgrade `openclaw` to 2026.2.22 and move to user IDs.
Published Mar 3, 2026 · Analysis Oct 31, 2026
What an attacker can do
OpenClaw lets you allow Discord senders by user ID or by name or tag. Name and tag matching depends on slug normalization, and that step is lossy: two different tags can produce the same slug. An attacker can register a Discord account whose tag collides with an allowlisted name and then pass the check (CWE-287). That gives them the access the entry grants, for example the right to DM the agent, post in an allowed guild channel, or match a pairing-store entry.
The CVSS 3.1 vector is network, low complexity, no privileges and no user interaction, with low confidentiality and integrity impact. The attacker needs only a Discord account and the ability to message the bot. The risk applies to any config with name or tag entries in DM allowlists, guild or channel users lists, or the pairing store. Entries that use numeric user IDs are not subject to slug collisions. For an agent that acts on what allowed Discord users say, a collision gives an outsider a direct line into it.
Who is affected
The openclaw npm package up to and including 2026.2.21-2, with the Discord channel enabled and allowlists that contain names or tags rather than IDs. Check the version:
npm ls openclaw
openclaw --versionThen open your config and look at DM allowFrom lists, guild and channel users lists, and pairing-store entries for non-numeric values.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.2.21-2
- Fixed in
- 2026.2.22
- Check
npm ls openclaw
How to fix it
Upgrade to 2026.2.22:
npm install -g [email protected]The fix commits are f97c45c5b5e0698b6667bb5f6badc0cac7dabd12 and 747bb581b3f2264495e1fec5a0727d9f2ca1b6f1. Runtime authorization now prefers a resolved user ID when a configured name or tag can be resolved, and it does not rewrite your config on disk. Name entries still work for compatibility. openclaw security audit now warns about Discord name and tag allowlist entries. Replace them with stable user IDs, then run:
openclaw security auditHow to tell if you were hit
Run openclaw security audit on 2026.2.22 or later. It flags Discord name and tag entries in DM allowlists, guild or channel users lists and pairing-store entries. On older installs, read the config for the same entries. Then review Discord activity from accounts whose tags are near-duplicates of your allowlisted names. The sources give no fixed log string.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
OpenClaw supports Discord allowlists using either user IDs or names/tags. Name/tag matching depends on slug normalization, so different user tags can collide to the same slug and unintentionally satisfy a name-based allowlist entry.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
<= 2026.2.21-2 - Patched versions: >= 2026.2.22
What Changed
openclaw security auditnow warns on Discord name/tag allowlist entries (DM allowlists, guild/channelusers, and pairing-store entries).- Runtime authorization now prefers resolved user IDs when a configured name/tag can be resolved, without rewriting config files on disk.
- Name-based entries remain supported for compatibility.
Recommendations
- Prefer stable Discord user IDs for security-sensitive allowlists.
- Run
openclaw security auditand address warnings where practical.
Fix Commit(s)
- f97c45c5b5e0698b6667bb5f6badc0cac7dabd12
- 747bb581b3f2264495e1fec5a0727d9f2ca1b6f1
OpenClaw thanks @tdjackey for reporting.
Credited to tdjackey.
Questions
- Are numeric Discord user IDs in my allowlist safe?
The advisory's flaw is in name and tag matching through slug normalization, and it recommends IDs for security-sensitive allowlists. Entries written as IDs do not rely on slugs.
- Does upgrading rewrite my config?
No. Runtime authorization prefers resolved user IDs without rewriting config files on disk. Name entries still work, so change them to IDs yourself.
- Which version fixes GHSA-4cqv-h74h-93j4?
OpenClaw 2026.2.22. Versions up to 2026.2.21-2 are affected.
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 entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
