OpenClaw Vulnerability: Missing Git Environment Variable Denylist
Summary
GHSA-cm8v-2vh9-cxf3: Impact GIT_DIR and related git plumbing env vars missing from exec env denylist (GHSA-m866-6qv5-p2fg variant). Affects openclaw versions < 2026.4.8. Fixed in 2026.4.8. 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 a user-controlled local assistant designed to enhance user productivity by automating tasks and managing local resources. It leverages various Git operations to streamline workflows. However, it has been identified that certain Git plumbing environment variables, specifically GIT_DIR, were not adequately removed from the execution environment, leading to potential security risks.
Vulnerability Detail
The vulnerability arises from the failure to remove Git plumbing environment variables, such as GIT_DIR, from the execution environment before executing host commands. This oversight can allow malicious actors to redirect Git operations, potentially compromising the integrity of the application and the user's data. The vulnerability is categorized under CWE-184 (Improper Neutralization of Special Elements) and CWE-78 (OS Command Injection), indicating a significant risk to the application's security.
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.4.8
This is the first release that contains the fix.
npm install openclaw@2026.4.8
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, you can manually unset the GIT_DIR and related environment variables before executing any commands that rely on OpenClaw. This can be done in a Unix-like terminal using the following command: unset GIT_DIR.
Conclusion
The OpenClaw package has a vulnerability related to the handling of Git environment variables, which could lead to security risks. It is crucial to update to the patched version 2026.4.8 to mitigate these risks. Users are encouraged to utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for openclaw →
FAQ
The vulnerability can allow unauthorized redirection of Git operations, potentially leading to data compromise.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
The CVSS score of this vulnerability is 2.0, indicating a low severity level.
Yes, the vulnerability has been patched in version 2026.4.8 of the OpenClaw package.
If you cannot update the package, ensure to unset the GIT_DIR and related environment variables as a temporary workaround.
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.