Loading...
Skip to main content

CVE-2026-41387 — Vulnerability in openclaw — CVE Details

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

Advisory Timeline

  • First published March 31, 2026 (194 days ago).
  • Last revised May 6, 2026 — 35 days after initial publication.

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)

Affects 1 ecosystem: npm (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-22172
    CRITICAL

    OpenClaw: WebSocket shared-auth connections could self-declare elevated scopes

  • CVE-2026-43571
    HIGH

    OpenClaw: Channel setup catalog lookups could include untrusted workspace plugin shadows

  • CVE-2026-32060
    HIGH

    OpenClaw has a path traversal in apply_patch could write/delete files outside the workspace

  • CVE-2026-32914
    HIGH

    OpenClaw: Command-authorized non-owners could reach owner-only `/config` and `/debug` surfaces

  • CVE-2026-28469
    HIGH

    OpenClaw Google Chat shared-path webhook target ambiguity allowed cross-account policy-context misrouting

  • CVE-2026-43531
    MEDIUM

    OpenClaw: Workspace .env could inject OpenClaw runtime-control variables

  • CVE-2026-53838
    MEDIUM

    OpenClaw: Node pairing reconnection could confuse approval scope state

  • CVE-2026-22177
    MEDIUM

    OpenClaw's config env vars allowed startup env injection into service runtime

Check if you're affected

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

Scan Your Dependencies