GHSA-jp4j-q5fc-58gv: OpenClaw's Discord component interaction ingress skips guild/channel policy enforcement
OpenClaw's Discord extension did not apply its guild and channel policy to button, select-menu and modal interactions. Users in guilds or channels that policy blocks could still trigger component actions. OpenClaw 2026.2.14 through 2026.3.24 is affected. Upgrade to 2026.3.28.
Published Mar 31, 2026 · Analysis Oct 31, 2026
What an attacker can do
OpenClaw checks Discord policy on normal inbound messages: the guild allowlist, per-channel enabled and allowed flags, and the group policy (open, disabled or allowlist). Component interactions are separate events. The handler in extensions/discord/src/monitor/agent-components.ts only ran the member users/roles check and skipped the guild and channel gates (CWE-862).
A Discord user could therefore click a button or submit a modal that an OpenClaw agent had posted, from a guild removed from the allowlist or a channel set to enabled: false or allowed: false, and the click was processed. The advisory calls these privileged component actions. What a click does depends on what the agent put on the button, so the effect ranges from a harmless reply to an action the agent runs on the operator's behalf. The attacker needs a Discord account that can see and click the component, and no other privilege. The CVSS vector reflects low integrity impact, hence medium severity.
Who is affected
The openclaw npm package from 2026.2.14 through 2026.3.24, when the Discord extension is enabled with guild or channel restrictions. Deployments with the Discord extension disabled are not affected. Check the version:
npm ls openclaw
openclaw --versionopenclaw
- Ecosystem
- npm
- Affected
- >= 2026.2.14, <= 2026.3.24
- Fixed in
- 2026.3.28
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.28 or later:
npm install -g [email protected]Commit 511093d4b3 ("Discord: apply component interaction policy gates") passes the group policy into ensureGuildComponentMemberAllowed, honors the guild allowlist, and rejects interactions in channels with enabled: false or allowed: false. Blocked users get an ephemeral "You are not authorized to use this button." reply and nothing is dispatched. The advisory lists no workaround.
How to tell if you were hit
Compare Discord component interaction events in OpenClaw logs against your policy: look for button, select or modal events from guilds no longer on the allowlist, or from channels you disabled. Check agent transcripts for actions started by a component click in those places. After upgrading, such clicks show the unauthorized reply instead.
Beam records the shell commands and tool calls an agent runs, so you can review what a triggered component action did.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Discord button and component interaction ingress did not consistently reapply the same guild and channel policy gates used for normal inbound messages.
Impact
Users could trigger privileged component actions from contexts that should have been blocked by Discord channel policy.
Affected Component
extensions/discord/src/monitor/agent-components.ts
Fixed Versions
- Affected:
>= 2026.2.14, <= 2026.3.24 - Patched:
>= 2026.3.28 - Latest stable
2026.3.28contains the fix.
Fix
Fixed by commit 511093d4b3 (Discord: apply component interaction policy gates).
Credited to nexrin, KeenSecurityLab, qclawer.
Questions
- Is this the same as a message policy bypass?
No. Normal inbound messages were already checked. The gap was in component interactions (buttons, select menus, modals), which skipped the guild and channel gates.
- Does GHSA-jp4j-q5fc-58gv have a CVE id?
No CVE is listed in the data for this advisory. It is tracked by its GitHub advisory id.
- Which versions are affected and fixed?
Affected: 2026.2.14 through 2026.3.24. Fixed: 2026.3.28.
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
