Mar 13, 2026·5 min read·42 visits
A flaw in OpenClaw's Discord integration allows unauthorized users to bypass channel allowlist restrictions by reacting to messages, triggering AI workflows without proper authorization.
OpenClaw versions prior to v2026.3.11 contain an improper access control vulnerability within the Discord integration module. The reaction ingress handler fails to validate user and role allowlists, permitting unauthorized users to trigger restricted bot workflows via message reactions.
OpenClaw provides AI assistant infrastructure, frequently deployed as an integrated application within Discord guilds. The bot monitors channels for specific events, including standard text messages and message reactions, to trigger automated workflows or AI agent interactions. Administrators utilize allowlists to restrict bot interactions to specific authorized users or roles.
In versions prior to v2026.3.11, the Discord reaction ingestion logic fails to enforce these allowlist checks. While standard text messages undergo rigorous preflight validation before processing, the reaction event pipeline skips critical member-level authorization checks. This creates a functional discrepancy where unauthorized users are blocked from texting the bot but permitted to interact with it via reactions.
This vulnerability, classified under CWE-284 (Improper Access Control) and CWE-863 (Incorrect Authorization), allows any Discord user with basic channel read and reaction permissions to interact with the bot. The CVSS score of 5.4 reflects the requirement for existing low-level channel privileges and the bounded impact on system confidentiality and integrity.
The vulnerability originates in the handleDiscordReactionEvent function located within src/discord/monitor/listeners.ts. When a user applies an emoji reaction to a monitored message, the Discord API dispatches a reaction event that OpenClaw routes to this handler for processing.
The implementation of handleDiscordReactionEvent lacked an invocation of the centralized authorization service, resolveDiscordMemberAccessState. Instead, the function utilized a "fast path" validation routine that evaluated global configuration modes (such as determining if the bot was in all or allowlist mode) but omitted the actual cryptographic verification of the reacting user's identity or roles against those configured lists.
Because the reaction logic assumed authorization had already occurred at the channel level, or was unnecessary for reaction events, the bot processed the ingress payload as if it originated from a fully authorized user. The system implicitly trusted the event source without validating the actor's constraints defined in the channel configuration.
The patch, implemented in commit 487a3ba8ceeffa0a5a5ba12d6d00d9d347b3d0d4, addresses the missing authorization check by integrating resolveDiscordMemberAccessState directly into the reaction ingress pipeline.
Before the patch, the code relied on an incomplete authorization function that did not evaluate specific member roles or IDs against the allowlist. The execution proceeded directly to processing the reaction payload without verifying the actor.
// Vulnerable Implementation (src/discord/monitor/listeners.ts)
const ingressAccess = await authorizeDiscordReactionIngress(reactionIngressBase);
// Execution continues without member-level validationThe remediated code explicitly fetches the user's roles and ID, passing them to the centralized access resolver. If the member fails the validation check, the execution returns early with a denial reason, preventing the unauthorized workflow trigger.
// Patched Implementation (src/discord/monitor/listeners.ts)
const { hasAccessRestrictions, memberAllowed } = resolveDiscordMemberAccessState({
channelConfig: params.channelConfig,
guildInfo: params.guildInfo,
memberRoleIds: params.memberRoleIds,
sender: {
id: params.user.id,
name: params.user.username,
tag: formatDiscordUserTag(params.user),
},
allowNameMatching: params.allowNameMatching,
});
if (hasAccessRestrictions && !memberAllowed) {
return { allowed: false, reason: "guild-member-denied" };
}Exploitation requires the attacker to possess a standard Discord account with read access to the target guild channel. Furthermore, the attacker must possess the "Add Reactions" permission within that specific channel to append new emojis to existing messages.
The attacker identifies a channel where the OpenClaw bot is actively monitoring messages but restricts interactions via an allowlist. The attacker then locates a message processed or generated by the bot and applies a reaction. This is typically a specific emoji configured by the bot operator to trigger a mapped workflow or automated response.
Because the handleDiscordReactionEvent function fails to validate the attacker's Discord ID or roles against the configured allowlist, OpenClaw accepts the reaction payload. The bot subsequently executes the mapped workflow or AI agent trigger, operating under the incorrect assumption that an authorized user initiated the action.
The primary impact is a bypass of intended access controls, allowing unauthorized users to consume bot resources, trigger AI generation processes, or invoke configured notification workflows. This leads to a loss of integrity regarding who can command the system and a minor loss of confidentiality if the triggered workflows return sensitive operational data to the channel.
The attack does not yield remote code execution, nor does it provide direct access to the underlying server hosting the OpenClaw instance. The impact remains constrained strictly to the functionalities exposed by the bot's reaction handlers within the specific Discord guild context.
The CVSS v3.1 vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N accurately reflects the network attack vector, the requirement for low privileges (channel interaction access), and the limited confidentiality and integrity impacts associated with unauthorized workflow execution.
Administrators must upgrade their OpenClaw deployments to version v2026.3.11 or later. This release incorporates the necessary authorization checks within the reaction handling pipeline, ensuring all interactions respect the configured allowlists.
If immediate patching is unfeasible, administrators can apply configuration-level workarounds. Modifying the Discord channel configuration to disable reaction notifications entirely mitigates the attack surface by shutting off the vulnerable code path.
Specifically, administrators should set reactionNotifications: { mode: "off" } or restrict reactions exclusively to the bot itself via mode: "own". These changes prevent the vulnerability from being triggered and must be applied to all channels where the bot operates under an allowlist configuration.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
openclaw/openclaw OpenClaw | < v2026.3.11 | v2026.3.11 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-284, CWE-863 |
| Attack Vector | Network |
| CVSS Score | 5.4 |
| Exploit Status | None |
| Impact | Access Control Bypass |
| Required Privileges | Low (Channel Read/React access) |
The software does not properly restrict access to resources or functionality based on the identity of the user or the role they hold.
CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.
CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.
CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.
CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.
CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.
CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.