Advisory

GHSA-j7p2-qcwm-94v4

Also known as: CVE-2026-41387

Summary

OpenClaw's incomplete host env sanitization blocklist allows supply-chain redirection via package-manager env overrides

Details

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
  • Patched: >= 2026.3.22

Fix

Fixed by commit 7abfff756d (Exec: harden host env override handling across gateway and node).

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-31 23:59 UTC
Modified
2026-05-06 02:51 UTC

Affected packages and fixes

openclaw

npm · All systems

Affected

  • introduced 0, fixed 2026.3.22 (semver)

Fixed versions

2026.3.22

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences