Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker creates malicious workspace with poisoned .env
-
DeliveryUser clones/opens workspace in OpenClaw
-
ExploitOpenClaw loads workspace .env file
-
InstallMINIMAX_API_HOST override bypasses validation
-
C2MiniMax API call routed to attacker server
-
ExecuteAuthorization header with API key transmitted to attacker
-
ImpactAPI key exfiltrated and compromised
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service Proxy/intermediary controls
|
| Exploitation Conditions | Exploitation requires (1) a malicious workspace .env file in the local file system with MINIMAX_API_HOST set to an attacker-controlled URL, (2) the local user to open or initialize that workspace in OpenClaw, and (3) OpenClaw to invoke MiniMax API features (speech-provider or minimax-vlm agent) that read the poisoned environment variable. The attacker must have write access to the workspace .env file or social-engineer the user into cloning a repository containing the malicious file. Default OpenClaw configuration does not enable the vulnerability; the workspace dotenv must be loaded and the MINIMAX_API_HOST variable present. The vulnerability does not affect OpenClaw instances that do not use MiniMax features or that run in environments where workspace .env loading is disabled. |
| Impact | CVSS 5.0 (AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N) indicates local attack vector, low attack complexity, low privilege requirement, required user interaction, and high confidentiality impact with no integrity or availability impact. The medium severity rating from the advisory aligns with this score. Real-world risk is elevated for users who open or work from untrusted workspaces (shared codebases, cloned repositories with malicious .env files, or social engineering scenarios), but mitigated by the requirement for local file access and user interaction (opening the workspace). The attack surface is limited to environments where OpenClaw users execute MiniMax-dependent features. The CVSS vector accurately reflects the threat: once a malicious workspace is opened, exploitation is automatic and requires no special attack complexity. However, compared to network-based attacks, local + UI interaction significantly reduces the practical exploitation rate. No KEV status or public POC availability is indicated, suggesting this is a proactive disclosure with limited real-world exploitation observed at the time of patch release. |
| Exploit ScenarioDerived | An attacker creates a malicious OpenClaw workspace repository with a .env file containing MINIMAX_API_HOST=https://attacker.com/api. When a user clones this repository and opens it in OpenClaw (or the application auto-loads the workspace), any MiniMax API requests (e.g., for speech synthesis or vision features) are routed to the attacker's server instead of the legitimate api.minimaxi.com. The attacker's server receives the request with the Authorization header containing the user's MiniMax API key, which the attacker can log and use for unauthorized API calls. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 11, 2026
OpenClaw versions 2026.4.5 through 2026.4.19 allow local attackers with user privileges to redirect credentialed MiniMax API requests to attacker-controlled servers via environment variable injection in workspace dotenv files, exposing MiniMax API keys in Authorization headers. The vulnerability requires user interaction (opening a malicious workspace) and local access but achieves high confidentiality impact by exfiltrating sensitive API credentials.
RemediationAI
Vendor-released patch: OpenClaw 2026.4.20. Upgrade immediately from any version 2026.4.5 through 2026.4.19 to 2026.4.20 or later. The patch adds MINIMAX_API_HOST to the BLOCKED_WORKSPACE_DOTENV_KEYS set in src/infra/dotenv.ts and extends the BLOCKED_WORKSPACE_DOTENV_SUFFIXES blocklist to include _API_HOST to prevent future environment variable injection for API endpoint URLs. Additionally, the fix removes env-driven URL routing from the MiniMax request paths, replacing dynamic URL construction with hardcoded trusted API endpoints (https://api.minimaxi.com for VLM and speech TTS services). See patch commit 2f06696579a1ab0cb5bbbbb6a900414a6b2e3cd1 and advisory https://github.com/openclaw/openclaw/security/advisories/GHSA-h2vw-ph2c-jvwf for detailed changes. If immediate upgrade is not feasible, avoid opening or working from untrusted workspace directories and review any existing workspace .env files for MINIMAX_API_HOST or similar suspicious API endpoint variables; however, this is not a reliable defense against determined attackers with file system access.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenClaw is an AI development platform (npm package) that integrates with the MiniMax API for speech and vision features. The vulnerability stems from CWE-441 (Unintended Proxy or Intermediary) combined with improper input validation of workspace-level .env files. The dotenv loader fails to blocklist the MINIMAX_API_HOST environment variable, allowing a workspace .env file to override the API endpoint URL. When OpenClaw initializes MiniMax features (speech-provider and minimax-vlm agent), it reads MINIMAX_API_HOST from process.env without validating whether it came from a trusted source (application-level config) or untrusted source (workspace .env). The attacker-supplied URL receives the Authorization header containing the MiniMax API key, which is embedded in all requests to the MiniMax API. The root cause is the absence of environment variable filtering in the workspace dotenv loading logic (src/infra/dotenv.ts loadWorkspaceDotEnvFile function).
Know when Openclaw gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
OpenClaw versions 2026.4.5 before 2026.4.20 contain an environment variable injection vulnerability allowing workspace dotenv to override MINIMAX_API_HOST. Attackers can redirect credentialed MiniMax API requests to attacker-controlled origins, exposing the MiniMax API key in Authorization headers.
Blast Radius
ecosystem impact- 1 npm packages depend on openclaw (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.4.5.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.
Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b
OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att
An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.
OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e
Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in
Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses
Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a
Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach
Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev
OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director
OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func
EUVD-2026-29137
GHSA-4mhr-cxr4-2prm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB