CVE-2026-22178: OpenClaw: ReDoS via Feishu mention metadata
MEDIUMOpenClaw's stripBotMention function builds a RegExp directly from unescaped Feishu mention metadata, so anyone who can post a message into a chat where the bot listens can embed regex metacharacters or nested-quantifier patterns that trigger catastrophic backtracking. This is a low-privilege, network-reachable, no-user-interaction bug (CVSS 6.5) that can stall the bot's event loop or silently strip more content than intended before it reaches the model — a real availability and integrity concern for anything running OpenClaw as a Feishu-facing agent, though EPSS sits at a low 0.31% (77th percentile) and there is no CISA KEV listing, public exploit, or Nuclei template yet, and CISA's own SSVC call is TRACK rather than urgent action. Only 4 downstream dependents are known, capping blast radius, but this package already carries 426 other CVEs and a 0/100 risk score, signaling a broader pattern worth flagging in vendor risk reviews. Patch to OpenClaw >=2026.2.19, which sanitizes mention metadata before RegExp construction; until then, cap processing time around message preprocessing and monitor for CPU spikes correlated with inbound Feishu traffic.
What is the risk?
Medium severity (CVSS 6.5) reflecting low-complexity, unauthenticated, network-reachable exploitability offset by limited impact (integrity: low, availability: low, no confidentiality loss). Real-world exploitation likelihood is low today — EPSS 0.31% probability of exploitation in the next 30 days, no CISA KEV entry, no public PoC or Nuclei template, and CISA SSVC recommends TRACK. However, the trivial precondition (any Feishu user who can message the bot) combined with well-understood ReDoS crafting techniques means opportunistic exploitation could emerge quickly. Risk is elevated for deployments where the OpenClaw bot is exposed to untrusted or public Feishu workspaces.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| OpenClaw | pip | — | No patch |
Do you use OpenClaw? You're affected.
How severe is it?
What is the attack surface?
What should I do?
1 step-
Upgrade OpenClaw to version 2026.2.19 or later, which applies the linked patch commits sanitizing Feishu mention metadata before RegExp construction. If immediate upgrade isn't possible, wrap regex construction from user-controlled input with a hard timeout or safe-regex library, reject mention metadata containing nested quantifiers or unescaped regex metacharacters, and rate-limit messages per sender to reduce DoS blast radius. Detection: alert on event-loop lag or sustained high CPU on the OpenClaw process correlated with inbound Feishu webhook traffic, and flag messages where mention metadata falls outside an expected character allowlist.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-22178?
OpenClaw's stripBotMention function builds a RegExp directly from unescaped Feishu mention metadata, so anyone who can post a message into a chat where the bot listens can embed regex metacharacters or nested-quantifier patterns that trigger catastrophic backtracking. This is a low-privilege, network-reachable, no-user-interaction bug (CVSS 6.5) that can stall the bot's event loop or silently strip more content than intended before it reaches the model — a real availability and integrity concern for anything running OpenClaw as a Feishu-facing agent, though EPSS sits at a low 0.31% (77th percentile) and there is no CISA KEV listing, public exploit, or Nuclei template yet, and CISA's own SSVC call is TRACK rather than urgent action. Only 4 downstream dependents are known, capping blast radius, but this package already carries 426 other CVEs and a 0/100 risk score, signaling a broader pattern worth flagging in vendor risk reviews. Patch to OpenClaw >=2026.2.19, which sanitizes mention metadata before RegExp construction; until then, cap processing time around message preprocessing and monitor for CPU spikes correlated with inbound Feishu traffic.
Is CVE-2026-22178 actively exploited?
No confirmed active exploitation of CVE-2026-22178 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-22178?
Upgrade OpenClaw to version 2026.2.19 or later, which applies the linked patch commits sanitizing Feishu mention metadata before RegExp construction. If immediate upgrade isn't possible, wrap regex construction from user-controlled input with a hard timeout or safe-regex library, reject mention metadata containing nested quantifiers or unescaped regex metacharacters, and rate-limit messages per sender to reduce DoS blast radius. Detection: alert on event-loop lag or sustained high CPU on the OpenClaw process correlated with inbound Feishu webhook traffic, and flag messages where mention metadata falls outside an expected character allowlist.
What systems are affected by CVE-2026-22178?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, chat platform integrations (Feishu/Lark bots), message preprocessing pipelines.
What is the CVSS score for CVE-2026-22178?
CVE-2026-22178 has a CVSS v3.1 base score of 6.5 (MEDIUM). The EPSS exploitation probability is 0.31%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0029 Denial of AI Service AML.T0034.001 Resource-Intensive Queries AML.T0093 Prompt Infiltration via Public-Facing Application Compliance Controls Affected
What are the technical details?
Original Advisory
OpenClaw versions prior to 2026.2.19 construct RegExp objects directly from unescaped Feishu mention metadata in the stripBotMention function, allowing regex injection and denial of service. Attackers can craft nested-quantifier patterns or metacharacters in mention metadata to trigger catastrophic backtracking, block message processing, or remove unintended content before model processing.
Exploitation Scenario
An attacker joins or already has access to a Feishu group/channel where an OpenClaw-powered bot is present — no special privileges or authentication to the bot itself are required. The attacker crafts a message whose @mention metadata contains a nested-quantifier regex pattern designed to induce catastrophic backtracking. When OpenClaw builds a RegExp directly from that unescaped metadata to strip the bot's own mention before forwarding the message for model processing, the regex engine enters exponential-time evaluation, hanging or severely slowing the event loop and denying service to every other user of that bot instance. A subtler variant crafts metacharacters that cause the strip operation to remove more or different text than intended, silently altering the content the LLM ultimately processes.
Weaknesses (CWE)
CWE-1333 — Inefficient Regular Expression Complexity: The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.
- [Architecture and Design] Use regular expressions that do not support backtracking, e.g. by removing nested quantifiers.
- [System Configuration] Set backtracking limits in the configuration of the regular expression implementation, such as PHP's pcre.backtrack_limit. Also consider limits on execution time for the process.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L References
- github.com/openclaw/openclaw/commit/74268489137510b6f6349919d1e197b17290d92c patch
- github.com/openclaw/openclaw/commit/7e67ab75cc2f0e93569d12fecd1411c2961fcc8c patch
- github.com/openclaw/openclaw/security/advisories/GHSA-c6hr-w26q-c636 vendor-advisory
- vulncheck.com/advisories/openclaw-redos-and-regex-injection-via-unescaped-feishu-mention-metadata third-party-advisory
Timeline
Related Vulnerabilities
CVE-2026-33579 9.9 OpenClaw: scope bypass escalates low-priv to admin
Same package: openclaw CVE-2026-32922 9.9 OpenClaw: privilege escalation to RCE via token scope bypass
Same package: openclaw CVE-2026-32038 9.8 OpenClaw: sandbox bypass enables container lateral movement
Same package: openclaw CVE-2026-53838 9.8 OpenClaw: approval scope bypass via reconnection state
Same package: openclaw CVE-2026-30741 9.8 OpenClaw: RCE via request-side prompt injection
Same package: openclaw