CVE-2026-41294 — Vulnerability in openclaw — CVE Details
OpenClaw has a CWD `.env` environment variable injection which bypasses host-env policy and allows config takeover
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.20%). 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-41294 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
OpenClaw loaded the current working directory .env before trusted state-dir configuration, allowing untrusted workspace state to inject host environment values.
Impact
A repository or workspace containing a malicious .env file could override runtime configuration and security-sensitive environment settings when OpenClaw started there.
Affected Component
src/infra/dotenv.ts, src/cli/dotenv.ts
Fixed Versions
- Affected:
<= 2026.3.24 - Patched:
>= 2026.3.28 - Latest stable
2026.3.28contains the fix.
Fix
Fixed by commit 6a79324802 (Filter untrusted CWD .env entries before OpenClaw startup).
Advisory Timeline
- First published April 1, 2026 (239 days ago).
- Last revised April 20, 2026 — 20 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install openclaw@2026.3.28
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.3.28 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-426
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2026-41294?
- OpenClaw has a CWD `.env` environment variable injection which bypasses host-env policy and allows config takeover. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.6/10).
- How do I check if my project is affected by CVE-2026-41294?
- CVE-2026-41294 affects openclaw. It has a 0.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-41294 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 5.3% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-31999CRITICAL
CpenClaw's ACPX Windows wrapper shell fallback allowed cwd injection in specific paths
- CVE-2026-32913HIGH
OpenClaw: fetch-guard forwards custom authorization headers across cross-origin redirects
- CVE-2026-53836HIGH
OpenClaw: PowerShell encoded-command aliases could miss exec allowlist checks
- CVE-2026-41387HIGH
OpenClaw's incomplete host env sanitization blocklist allows supply-chain redirection via package-manager env overrides
- CVE-2026-29610HIGH
OpenClaw: Command hijacking via unsafe PATH handling (bootstrapping + node-host PATH overrides)
- CVE-2026-53843HIGH
OpenClaw: Pairing-scoped device session could restore revoked node token authority
- CVE-2026-33578MEDIUM
OpenClaw: Google Chat and Zalouser group sender allowlist bypass via policy downgrade
- CVE-2026-42426MEDIUM
OpenClaw `node.pair.approve` placed in `operator.write` scope instead of `operator.pairing` allows unprivileged pairing approval