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.
Published: 2026-04-28
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Tue, 28 Apr 2026 19:15:00 +0000

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'}


Subscriptions

Openclaw Openclaw
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-04-28T18:09:49.570Z

Reserved: 2026-04-20T14:12:09.519Z

Link: CVE-2026-41387

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-04-28T19:37:41.910

Modified: 2026-04-28T20:10:23.367

Link: CVE-2026-41387

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-28T23:15:43Z

Weaknesses