CVE-2026-41387

OpenClaw < 2026.3.22 - Supply Chain Redirection via Incomplete Host Environment Sanitization

Published Apr 28, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

OpenClaw’s host‑environment sanitization in host‑env‑security-policy.json and host‑env‑security.ts is incomplete, allowing attackers who control package‑manager environment variables to override how packages are resolved or how the runtime is bootstrapped. By injecting malicious overrides, an attacker can redirect package resolution or bootstrap to attacker‑controlled infrastructure and execute trojanized content. This flaw is a classic supply‑chain redirection and is mapped to CWE‑183, Unauthorized Modification of Code Execution Path.

Affected Systems

All deployments of the OpenClaw framework older than version 2026.3.22 are potentially affected. The vulnerability exists in the OpenClaw core package and its configuration files. Any environment where host‑env‑security‑policy.json is not enforced or can be modified during runtime is at risk.

Risk and Exploitability

The CVSS score of 8.5 classifies this issue as high severity. With EPSS data unavailable and no indication that it has been recorded in the CISA KEV catalog, the established risk is not driven by active exploitation reports yet but by the high potential for widespread compromise, especially in environments that perform out‑of‑band package resolution. Attackers would need to supply a malicious package or manipulate installation scripts, but once the override is in place, execution of trojanized content is trivial. Because the vulnerability is a supply‑chain attack vector, the broad impact could extend to all data and services accessed by the affected applications. In short, the exploitability is medium‑low to early‑stage, but the severity remains high.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official OpenClaw 2026.3.22 update or later to replace the vulnerable host environment sanitization logic.
  • If an immediate upgrade is not feasible, audit the node_modules tree for any packages installed after the vulnerability was disclosed, uninstall any suspicious or untrusted packages, and verify package integrity by checking checksums or digital signatures.
  • Immediately edit host‑env‑security‑policy.json to lock or disable package‑manager environment overrides so that only whitelisted values can influence resolution or bootstrap paths, and restrict the package‑manager to trusted registries until the patch is applied.

Generated by OpenCVE AI on April 28, 2026 at 23:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-j7p2-qcwm-94v4 OpenClaw's incomplete host env sanitization blocklist allows supply-chain redirection via package-manager env overrides
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title OpenClaw < 2026.3.22 - Supply Chain Redirection via Incomplete Host Environment Sanitization
First Time appeared Openclaw
Openclaw openclaw
Weaknesses CWE-183
CPEs cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:*
Vendors & Products Openclaw
Openclaw openclaw
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': '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'}

Weaknesses
  • CWE-183

    Permissive List of Allowed Inputs

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Apr 30, 2026, 12:50 PM
Reserved
Apr 20, 2026, 2:12 PM
Status
Analyzed
Published
Apr 28, 2026, 7:37 PM
Modified
Nov 11, 2026, 9:10 PM