CVE-2026-28391 — Vulnerability in openclaw — CVE Details
OpenClaw's Windows cmd.exe parsing may bypass exec allowlist/approval gating
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.02%). Schedule for your next planned update.
Does your project use an affected openclaw version?
Paste your package-lock.json to check it for CVE-2026-28391 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
On Windows nodes, exec requests were executed via cmd.exe /d /s /c <rawCommand>. In allowlist/approval-gated mode, the allowlist analysis did not model Windows cmd.exe parsing and metacharacter behavior. A crafted command string could cause cmd.exe to interpret additional operations (for example command chaining via &, or expansion via %...% / !...!) beyond what was allowlisted/approved.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected:
<= 2026.2.1 - Patched:
>= 2026.2.2 - Latest (npm) as of 2026-02-14:
2026.2.13
Details
- Default installs: Not affected unless you opt into exec allowlist/approval gating on Windows nodes.
- Windows execution uses
cmd.exeviasrc/infra/node-shell.ts. - The fix hardens Windows allowlist enforcement by:
- Passing the platform into allowlist analysis and rejecting Windows shell metacharacters.
- Treating
cmd.exeinvocation as not allowlist-safe on Windows. - Avoiding
cmd.exeentirely in allowlist mode by executing the parsed argv directly when possible.
Fix Commit(s)
a7f4a53ce80c98ba1452eb90802d447fca9bf3d6
Thanks @simecek for reporting.
Advisory Timeline
- First published February 17, 2026 (282 days ago).
- Last revised March 10, 2026 — 21 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install openclaw@2026.2.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| openclaw npm · Affected: All versions | 2026.2.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-78OS Command InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/openclaw/openclaw/security/advisories/GHSA-qj77-c3c8-9c3qWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-28391ADVISORY
- https://github.com/openclaw/openclaw/commit/a7f4a53ce80c98ba1452eb90802d447fca9bf3d6WEB
- https://github.com/openclaw/openclawPACKAGE
- https://github.com/openclaw/openclaw/releases/tag/v2026.2.2WEB
- https://www.vulncheck.com/advisories/openclaw-command-injection-via-cmdexe-parsing-bypass-in-allowlist-enforcementWEB
Frequently Asked Questions
- What is CVE-2026-28391?
- OpenClaw's Windows cmd.exe parsing may bypass exec allowlist/approval gating. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-28391?
- CVE-2026-28391 affects openclaw. It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-28391 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 62.6% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-35663CRITICAL
OpenClaw: Gateway Backend Reconnect lets Non-Admin Operator Scopes Self-Claim operator.admin
- CVE-2026-34507CRITICAL
OpenClaw: QQBot admin commands could skip DM-only and allowFrom policy
- CVE-2026-41397HIGH
OpenClaw: OpenShell Mirror Sync — Sandbox Escape via Unrestricted File Sync + Symlink Traversal
- CVE-2026-45006HIGH
OpenClaw's gateway config mutation guard allowed unsafe model-driven config writes
- CVE-2026-53806HIGH
OpenClaw: Combined POSIX shell options could confuse exec revalidation
- CVE-2026-53807HIGH
OpenClaw: Telegram interactive callbacks could skip commands.allowFrom
- CVE-2026-32023MEDIUM
OpenClaw's dispatch-wrapper depth-cap mismatch can bypass shell-wrapper approval gating in system.run allowlist mode
- CVE-2026-42422MEDIUM
OpenClaw `device.token.rotate` mints tokens for unapproved roles, bypassing device role-upgrade pairing