OpenClaw Command Execution Vulnerability: Bypass of Approval Mechanism
Summary
GHSA-6j27-pc5c-m8w8: OpenClaw's allow-always wrapper persistence could bypass future approvals and enable command execution. Affects openclaw versions < 2026.2.22. Fixed in 2026.2.22. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
OpenClaw is an npm package designed to facilitate the execution of system commands in a controlled manner. It allows users to wrap commands with security features to prevent unauthorized execution. However, a flaw in its implementation has led to a vulnerability that can allow malicious commands to be executed without proper approval, compromising system security.
Vulnerability Detail
The vulnerability arises from the 'allow-always' wrapper persistence in OpenClaw versions up to and including 2026.2.21-2. When commands are approved with 'allow-always' in 'security=allowlist' mode, it can lead to the persistence of wrapper-level allowlist entries. This allows future commands to bypass approval checks, potentially leading to remote code execution (RCE). The issue stems from the fact that the persistence mechanism is based on wrapper-level resolution rather than the intent of the inner executable, broadening trust boundaries and exposing systems to unauthorized command execution.
How To Fix
Latest published version: 2026.10.6 as of 22 Oct 2026
npm install openclaw@2026.10.6
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2026.2.22
This is the first release that contains the fix.
npm install openclaw@2026.2.22
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
Until the upgrade is applied, users can mitigate the risk by running OpenClaw with a stricter execution policy. This can be achieved by setting the following parameters: 'ask=always' and 'security=deny'. This will prompt for approval on every command execution and deny any unapproved commands.
Conclusion
The OpenClaw vulnerability presents a significant risk by allowing command execution without proper authorization. Users are strongly advised to upgrade to the patched version 2026.2.22 or implement stricter execution policies to safeguard their systems. Utilizing tools like Vulert can also help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for openclaw →
FAQ
The vulnerability allows for command execution without proper approval due to flawed persistence of wrapper-level allowlist entries.
You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If exploited, this vulnerability can lead to unauthorized command execution, potentially compromising the entire system.
Yes, a patched version (2026.2.22) is available. Users should upgrade to this version to mitigate the vulnerability.
The CVSS score of this vulnerability is 6.4, indicating a moderate level of severity.
References
Related vulnerabilities
Recent vulnerabilities recorded for openclaw.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.