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-16454 is an object-level authorization bypass vulnerability (CWE-284, CWE-862) in Eclipse hawkBit versions 1.0.3 and prior. The flaw exists within the Direct Device Integration (DDI) REST controller (hawkbit-ddi-resource), where endpoints responsible for enumerating software module metadata and serving firmware binaries fail to verify whether the requested software module is assigned to the authenticated device. Consequently, any device with valid credentials (such as a TargetToken or GatewayToken) can enumerate software module identifiers and download arbitrary firmware artifacts across the entire tenant namespace.
CVE-2026-62284 (GHSA-5w5g-j6hw-6p8f) is a code injection and server-side request forgery vulnerability in the console-proxy component of the OSAC Operator. The RemoteConfigResolver parses Kubernetes Secrets containing kubeconfig files via clientcmd.RESTConfigFromKubeConfig without sanitizing execution-related fields. An attacker with RBAC permissions to create or modify labeled Secrets in monitored namespaces can supply a malicious exec credential plugin, resulting in arbitrary command execution within the console-proxy pod.
CVE-2026-62361 (GHSA-xgjr-7j9q-2h4r) is an authenticated SQL injection and authorization bypass vulnerability in listmonk, an open-source, self-hosted newsletter and mailing list manager written in Go. In versions prior to 6.2.0, the subscriber export endpoint (GET /api/subscribers/export) directly interpolates user-supplied SQL filter expressions into a PostgreSQL query without invoking the table allowlist validation function (validateQueryTables). Consequently, authenticated users possessing the subscribers:sql_query and subscribers:get_all permissions can bypass relational access controls, execute arbitrary subqueries against restricted tables such as users and settings, and modify database state via writable Common Table Expressions (CTEs).
CVE-2026-28385 (GHSA-3gq2-x4qg-p4g6) is a Server-Side Request Forgery (SSRF) vulnerability in Canonical LXD versions 4.12 through 6.9. An authenticated user possessing the can_create_images entitlement can force the LXD daemon to execute arbitrary outbound HTTP and HTTPS requests via the /1.0/images API endpoint. Due to the absence of egress destination validation, an attacker can probe host loopback services, RFC 1918 private network segments, and cloud Instance Metadata Services (IMDS) from the network position of the privileged LXD daemon.
Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.
CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.