Loading...
Skip to main content

CVE-2026-41387

HIGH

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

Published March 31, 2026Updated May 6, 2026Source: osv

Summary

## 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`).

Remediation

Upgrade to the fixed version using your package manager.

npm
Update openclaw to 2026.3.22 or later
npm install openclaw@2026.3.22

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

PackageEcosystemAffectedFixed In
openclaw
npm
All versions2026.3.22

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-41387?
OpenClaw's incomplete host env sanitization blocklist allows supply-chain redirection via package-manager env overrides This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.6/10).
How do I check if my project is affected by CVE-2026-41387?
CVE-2026-41387 affects openclaw. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-41387 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.6

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-j7p2-qcwm-94v4

Related CVEs

  • CVE-2026-28446
    CRITICAL

    OpenClaw has an inbound allowlist policy bypass in voice-call extension (empty caller ID + suffix matching)

  • CVE-2026-35639
    CRITICAL

    OpenClaw Gateway: RCE and Privilege Escalation from operator.pairing to operator.admin via device.pair.approve

  • CVE-2026-32915
    HIGH

    OpenClaw: Leaf subagents could steer sibling sessions across sandbox boundaries

  • CVE-2026-35674
    HIGH

    OpenClaw: Scoped chat.send route inheritance could bypass admin command scope gates

  • CVE-2026-53836
    HIGH

    OpenClaw: PowerShell encoded-command aliases could miss exec allowlist checks

  • CVE-2026-29610
    HIGH

    OpenClaw: Command hijacking via unsafe PATH handling (bootstrapping + node-host PATH overrides)

  • CVE-2026-33578
    MEDIUM

    OpenClaw: Google Chat and Zalouser group sender allowlist bypass via policy downgrade

  • CVE-2026-42426
    MEDIUM

    OpenClaw `node.pair.approve` placed in `operator.write` scope instead of `operator.pairing` allows unprivileged pairing approval

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies