GHSA-w9j9-w4cp-6wgr OpenClaw Host-Exec Environment Variable Injection
OpenClaw host-exec could inherit environment variables allowing code injection, requiring an upgrade to the patched npm version.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-w9j9-w4cp-6wgr?
GHSA-w9j9-w4cp-6wgr is a code injection vulnerability in openclaw, published on 9 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Impact
OpenClaw Host-Exec Environment Variable Injection.
Host exec could inherit environment variables that influence interpreters, shells, or build tools.
OpenClaw is a user-controlled local assistant. This advisory is scoped to the OpenClaw trust model and does not assume a multi-tenant service boundary.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
<= 2026.3.28 - Patched versions:
2026.4.8
Fix
The issue was fixed on main and is available in the patched npm version listed above. The verified fixed tree is commit d7c3210cd6f5fdfdc1beff4c9541673e814354d5.
Verification
The fix was re-checked against main before publication, including targeted regression tests for the affected security boundary.
Credits
Thanks @wsparks-vc for reporting.
Which versions are affected by GHSA-w9j9-w4cp-6wgr?
2 open source packages ship an affected version, including openclaw.
| Package | Affected | Fixed in |
|---|---|---|
openclaw npm | All versions | 2026.4.8 |
openclaw npm | All versions | 2026.4.8 |
How do I fix GHSA-w9j9-w4cp-6wgr?
Upgrade openclaw to 2026.4.8 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is GHSA-w9j9-w4cp-6wgr being exploited?
There is no known exploitation of GHSA-w9j9-w4cp-6wgr in the wild and no public exploit code.