Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-22178

CVE-2026-22178: Openclaw Openclaw DOS Vulnerability

CVE-2026-22178 is a denial of service flaw in Openclaw Openclaw that allows regex injection through unescaped Feishu mention metadata. This post covers the technical details, affected versions, impact, and mitigation.

Published: March 20, 2026

CVE-2026-22178 Overview

CVE-2026-22178 is a regex injection vulnerability affecting OpenClaw, a Node.js-based application. 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 attacks. 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.

Critical Impact

Attackers can exploit this vulnerability to cause denial of service through catastrophic regex backtracking or manipulate message content by injecting malicious regex patterns through Feishu mention metadata.

Affected Products

  • OpenClaw versions prior to 2026.2.19
  • OpenClaw for Node.js (all platforms)

Discovery Timeline

  • 2026-03-18 - CVE-2026-22178 published to NVD
  • 2026-03-19 - Last updated in NVD database

Technical Details for CVE-2026-22178

Vulnerability Analysis

This vulnerability falls under CWE-1333 (Inefficient Regular Expression Complexity), commonly known as ReDoS (Regular Expression Denial of Service). The core issue resides in how the stripBotMention function processes Feishu mention metadata without proper input sanitization.

When processing incoming messages, OpenClaw dynamically constructs regular expressions using user-controlled mention metadata (mention.name and mention.key). Because this input is not escaped for regex metacharacters, an attacker can inject special regex syntax that either causes exponential backtracking (leading to CPU exhaustion) or matches unintended portions of the message content.

The network-accessible nature of this vulnerability means remote attackers can exploit it without authentication by sending crafted Feishu messages containing malicious mention metadata.

Root Cause

The root cause is the direct interpolation of unsanitized user input into RegExp constructors. The vulnerable code passes mention.name and mention.key values directly into new RegExp() without escaping regex metacharacters such as *, +, ?, ^, $, {}, (), |, [], and \\. This allows attackers to:

  1. Inject nested quantifiers (e.g., (a+)+) causing catastrophic backtracking
  2. Use metacharacters to match broader content than intended
  3. Potentially remove or manipulate message content before it reaches model processing

Attack Vector

The vulnerability is exploitable over the network without requiring authentication. An attacker can craft a Feishu message with malicious mention metadata containing regex metacharacters. When OpenClaw processes this message through the stripBotMention function, the injected patterns execute as part of the regex matching operation.

For example, a mention name containing .* would match any content, while nested quantifiers like (a+)+b against a string of many 'a' characters would cause exponential processing time.

The following patch demonstrates the fix applied in the security commit:

typescript
   return false;
 }
 
+function escapeRegExp(s: string): string {
+  return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
+}
+
 function stripBotMention(
   text: string,
   mentions?: FeishuMessageEvent["message"]["mentions"],
 ): string {
   if (!mentions || mentions.length === 0) return text;
   let result = text;
   for (const mention of mentions) {
-    result = result.replace(new RegExp(`@${mention.name}\\s*`, "g"), "").trim();
-    result = result.replace(new RegExp(mention.key, "g"), "").trim();
+    result = result.replace(new RegExp(`@${escapeRegExp(mention.name)}\\s*`, "g"), "").trim();
+    result = result.replace(new RegExp(escapeRegExp(mention.key), "g"), "").trim();
   }
   return result;
 }

Source: GitHub Commit Fix

Detection Methods for CVE-2026-22178

Indicators of Compromise

  • Unexpected CPU spikes during Feishu message processing
  • Application timeouts or hangs when handling specific messages
  • Log entries showing abnormally long regex processing times
  • Message content appearing truncated or modified unexpectedly

Detection Strategies

  • Monitor Node.js process CPU utilization for sustained high usage patterns during message handling
  • Implement regex execution timeout monitoring in application performance tools
  • Review incoming Feishu message payloads for unusual characters in mention metadata fields
  • Deploy application-level logging to capture regex pattern construction and execution times

Monitoring Recommendations

  • Set up alerting for Node.js event loop delays exceeding normal thresholds
  • Monitor the extensions/feishu/src/bot.ts module for error conditions
  • Track message processing latency metrics to identify potential ReDoS attacks
  • Implement rate limiting on incoming Feishu webhook endpoints

How to Mitigate CVE-2026-22178

Immediate Actions Required

  • Upgrade OpenClaw to version 2026.2.19 or later immediately
  • Review Feishu integration configurations for any signs of exploitation
  • Implement input validation on Feishu mention metadata at the application boundary
  • Consider temporarily disabling Feishu bot mention processing if immediate upgrade is not possible

Patch Information

The OpenClaw team has released security patches addressing this vulnerability. The fix introduces an escapeRegExp function that properly escapes all regex metacharacters before constructing RegExp objects from user input. For detailed patch information, see the GitHub Security Advisory and the GitHub Commit Fix.

Workarounds

  • Implement a proxy layer that sanitizes Feishu mention metadata before reaching OpenClaw
  • Add regex execution timeouts using libraries like safe-regex or re2 for Node.js
  • Deploy a Web Application Firewall (WAF) rule to filter messages containing suspicious regex metacharacters
  • Temporarily disable the bot mention stripping functionality if not critical to operations
bash
# Configuration example
# Upgrade OpenClaw to the patched version
npm update openclaw@2026.2.19

# Alternatively, apply the specific security commit
cd /path/to/openclaw
git fetch origin
git cherry-pick 7e67ab75cc2f0e93569d12fecd1411c2961fcc8c
npm run build

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechOpenclaw

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-1333
  • Technical References
  • VulnCheck Advisory on OpenClaw
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Fix

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-41331: OpenClaw DOS Vulnerability

  • CVE-2026-35665: Openclaw Openclaw DOS Vulnerability

  • CVE-2026-35667: OpenClaw DOS Vulnerability

  • CVE-2026-32980: Openclaw DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English