CVE-2026-22178
highpriority · track · 33EPSS 0.003 · 25 %ileEURUUSEPSS · scored 2026-10-28
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–high · 2.7–8.2
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-c6hr-w26q-c636OpenClaw has ReDoS and regex injection via unescaped Feishu mention metadata in RegExp construction2026-03-02ghsa · osvUS
## Summary `extensions/feishu/src/bot.ts` constructed `new RegExp()` directly from Feishu mention metadata (`mention.name`, `mention.key`) in `stripBotMention()` without escaping regex metacharacters. ## Affected Packages / Versions - Package: npm `openclaw` - Affected versions: `<= 2026.2.17` - First affected release: `2026.2.6` - Patched version: `2026.2.19` ## Impact - ReDoS: crafted nested-quantifier patterns in mention metadata can trigger catastrophic backtracking and block message processing. - Regex injection: metacharacters in mention metadata can remove unintended message content before it is sent to the model. ## Fix Commit(s) - `7e67ab75cc2f0e93569d12fecd1411c2961fcc8c` - `74268489137510b6f6349919d1e197b17290d92c` Thanks @allsmog for reporting.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (13)
External citations — patches, advisories, analysis.
- https://github.com/openclaw/openclaw/commit/74268489137510b6f6349919d1e197b17290d92ccnnvd
- https://github.com/openclaw/openclaw/commit/7e67ab75cc2f0e93569d12fecd1411c2961fcc8ccnnvd
- https://github.com/openclaw/openclaw/releasesPatchcnnvd
- https://github.com/openclaw/openclaw/security/advisories/GHSA-c6hr-w26q-c636cnnvd
- https://www.vulncheck.com/advisories/openclaw-redos-and-regex-injection-via-unescaped-feishu-mention-metadatacnnvd
- https://github.com/openclaw/openclaw/commit/74268489137510b6f6349919d1e197b17290d92cenisa_euvd
- https://github.com/openclaw/openclaw/commit/7e67ab75cc2f0e93569d12fecd1411c2961fcc8cenisa_euvd
- https://github.com/openclaw/openclaw/security/advisories/GHSA-c6hr-w26q-c636enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan