Skip to main content

OpenClaw CVE-2026-41387

| EUVDEUVD-2026-26096 HIGH
Permissive List of Allowed Inputs (CWE-183)
2026-04-28 VulnCheck GHSA-j7p2-qcwm-94v4
8.5
CVSS 4.0 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Inject malicious .env file
  2. Delivery
    User executes package operation
  3. Exploit
    Environment variables override package resolution
  4. Execution
    Trojanized dependencies downloaded
  5. Persist
    Malicious code executes in build/runtime context
  6. Impact
    Compromise 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

OpenClaw 0 <2026.3.22

Affected Packages

npm openclaw fix: 2026.3.22

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

NVD PRIMARY 8.5 HIGH
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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Patch released
Apr 30, 2026 - 20:36 nvd
Patch available
Patch available
Apr 28, 2026 - 21:01 EUVD
CVSS changed
Apr 28, 2026 - 19:52 NVD
7.8 (HIGH) 8.5 (HIGH)
CVE Published
Apr 28, 2026 - 18:09 nvd
HIGH 8.5

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 5 npm packages depend on openclaw (5 direct, 0 indirect)

Ecosystem-wide dependent count for version 2026.3.22.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-28446 CRITICAL POC
9.4 Mar 05

Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.

CVE-2026-33579 CRITICAL POC
9.4 Mar 31

Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b

CVE-2026-32042 HIGH POC
8.8 Mar 21

OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att

CVE-2026-32051 HIGH POC
8.8 Mar 21

An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.

CVE-2026-25253 HIGH POC
8.8 Feb 01

OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e

CVE-2026-32846 HIGH POC
8.7 Mar 26

Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in

CVE-2026-100530 HIGH POC
8.5 Sep 26

Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a

CVE-2026-32064 HIGH POC
8.5 Mar 21

Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach

CVE-2026-32055 HIGH POC
7.6 Mar 21

OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director

CVE-2026-32056 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func

CVE-2026-32049 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste

CVE-2026-32048 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.3.1 contain a sandbox escape vulnerability that allows authenticated attackers with low

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy