CVE-2026-53846: OpenClaw < 2026.4.29 - Arbitrary Package Manager Execution via Workspace .env npm_execpath
OpenClaw before 2026.4.29 contains a path traversal vulnerability in the install helper that allows workspace .env files to override the npm_execpath configuration used for bundled runtime dependency installation. Attackers with workspace access can execute unintended local package-manager executables during dependency setup to compromise the build environment.
Metrics
- CVSS v4.0
- 7.0
- Severity
- HIGH
- Fixed in
- 2026.4.29
- Affected Products
- 1
HarborGuard Analysis
Synopsis
This is a path traversal vulnerability in OpenClaw, a build tool, affecting versions before 2026.4.29. The flaw is in the install helper, which allows a workspace .env file to override the npm_execpath setting and redirect dependency installation to an arbitrary local executable. Successful exploitation lets an attacker run unintended package-manager binaries during dependency setup, compromising the build environment. A patched-image rebuild at version 2026.4.29 is available on HarborGuard for affected environments.
HarborGuard Coverage
Detection is available across every HarborGuard environment: the CVE is ingested from upstream feeds within minutes of publication and matched against customer images, including custom-built images that bundle OpenClaw. Any image running an affected version (below 2026.4.29) is flagged automatically.
AvailableHarborGuard scores this CVE at 7.0 HIGH using the CVSS v4.0 vector and can weight that score against each customer environment's compliance policy, routing findings to the appropriate team inbox within the customer org.
AvailableA patched-image rebuild at OpenClaw 2026.4.29 becomes available on HarborGuard once the fix version is confirmed in the upstream advisory. For customers who opt into auto-remediation, HarborGuard performs the rebuild, runs a regression test suite, and opens a PR against affected workloads.
AvailableExploit Conditions
- Network reachabilityNot required
The attacker needs an existing shell or process on the host; no over-the-network access to the service is required.
- AuthenticationNot required
No credentials or account are needed; the attacker only requires access to the workspace file system, which is the precondition captured by the attack vector.
- Victim interactionRequired
A user or automated process must trigger dependency installation (for example, running an install or build command) for the malicious npm_execpath override to be executed.
- Attack complexityDetail
While the basic exploit logic is straightforward, successful exploitation depends on a specific precondition: the attacker must be able to place or influence a .env file in the target workspace before installation runs (AT:P).
Blast Radius
- Reads sensitive build environment variables and credentials available to the build process at the time the injected executable runs.
- Modifies or replaces build artifacts, installed dependencies, or configuration files within the compromised build environment.
- Executes arbitrary local binaries under the identity of the user or service account running the dependency installation step.
How HarborGuard Handles This
Available on HarborGuard: images containing OpenClaw below 2026.4.29 are matched against this CVE within minutes of publication. Where compliance policy permits, a rebuilt image at 2026.4.29 is made available, and customers with auto-remediation enabled receive a full rebuild, regression test run, and a PR opened against affected workloads. Median time from CVE publication to merged patch PR for high-severity issues is around 90 minutes for environments with auto-remediation enabled. Because this vulnerability requires workspace write access as a precondition, teams that cannot immediately upgrade can reduce exposure by restricting write permissions on workspace directories, enforcing allowlists on executable paths available during CI builds, and applying network-policy controls to limit what processes spawned during dependency installation can reach.
Fix available
- OpenClaw / OpenClaw< 2026.4.29 (from 0)Fixed in 2026.4.29
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N