GitHub Advisoryadvisory · npm

GHSA-j7p2-qcwm-94v4 OpenClaw's incomplete host env sanitization blocklist allows supply-chain redirection via package-manager env overrides

HIGH Published 2026-03-31 Modified 2026-05-06 Official page ↗
Aliases
CVE-2026-41387
Ecosystem
npm
Packages
openclaw
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Weaknesses
CWE-183
Reviewed
2026-03-31

Affected packages

• npm openclaw: < 2026.3.22 → fixed in 2026.3.22

Description

Summary Host exec env override sanitization did not fail closed for several package-manager and related redirect variables that can steer dependency fetches or startup behavior. Impact An approved exec request could silently redirect package resolution or runtime bootstrap to attacker-controlled infrastructure and execute trojanized content. Affected Component `src/infra/host-env-security-policy.json, src/infra/host-env-security.ts` Fixed Versions • Affected: `= 2026.3.22` Fix Fixed by commit `7abfff756d` (`Exec: harden host env override handling across gateway and node`).

Related

Alias · CVE (1)

  • CVE-2026-41387 OpenClaw before 2026.3.22 contains an incomplete host environment variable sanitization vulnerability in host-env-security-policy.json and… vulnerability

Weakness · CWE (1)

  • CWE-183 Permissive List of Allowed Inputs weakness

References