OpenClaw Vulnerability: macOS Optional Allowlist Basename Matching Bypass
Summary
GHSA-7f4q-9rqh-x36p: OpenClaw: macOS optional allowlist basename matching could bypass path-based policy. 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 secure command execution on macOS systems by implementing an execution approval system. It allows users to define a list of trusted commands that can be executed, enhancing security by preventing unauthorized command execution. However, a vulnerability exists in its optional exec-approval allowlist mode, which could lead to security breaches if not addressed.
Vulnerability Detail
The vulnerability arises from the way OpenClaw handles basename-only entries in its allowlist. On macOS node-hosts, commands like 'echo' could be executed without proper approval if a local binary with the same name exists (e.g., './echo'). This situation occurs under the configuration of 'security=allowlist' and 'ask=on-miss', potentially allowing malicious binaries to run unchecked. The default installation posture is not impacted as it defaults to 'security=deny'.
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
As a temporary workaround, you can disable the optional exec approvals feature by setting 'security=deny' in your configuration. This will prevent any command execution without explicit approval, mitigating the risk until the package is updated.
Conclusion
The OpenClaw package has a vulnerability that allows basename matching to bypass path-based policies on macOS. It is crucial to update to version 2026.2.22 or later to ensure proper security measures are in place. Users should also consider using Vulert for ongoing monitoring of vulnerabilities in their applications.
See every vulnerability recorded for openclaw →
FAQ
The vulnerability allows local binaries with the same name as trusted commands to execute without approval, potentially leading to unauthorized command execution.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
The CVSS score for this vulnerability is 5.1, indicating a moderate level of risk.
If an immediate update is not possible, consider disabling the exec approvals feature by setting 'security=deny' to mitigate the risk.
The vulnerability was reported by @tdjackey, contributing to the security of the OpenClaw package.
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.