---
id: GHSA-4qgr-57jq-93vh
title: >-
  Duplicate Advisory: Workspace .env STATE_DIRECTORY could influence bundled
  runtime dependency roots
summary: >-
  Duplicate Advisory: Workspace .env STATE_DIRECTORY could influence bundled
  runtime dependency roots
severity: high
cvss: 7.1
cwe:
  - CWE-426
vendor: openclaw
product: openclaw
ecosystem: npm
affected:
  - openclaw < 2026.5.2
published: '2026-06-16'
updated: '2026-06-18'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-4qgr-57jq-93vh'
references:
  - url: >-
      https://github.com/openclaw/openclaw/security/advisories/GHSA-wc84-j36w-pw4x
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-53858'
  - url: >-
      https://www.vulncheck.com/advisories/openclaw-arbitrary-runtime-dependency-loading-via-state-directory-environment-variable
  - url: 'https://github.com/advisories/GHSA-4qgr-57jq-93vh'
tags:
  - ghsa
  - npm
ingestedAt: '2026-06-29T14:31:47.494Z'
---

## Overview

## Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-wc84-j36w-pw4x. This link is maintained to preserve external references.

## Original Description
OpenClaw before 2026.5.2 contains an environment variable injection vulnerability where workspace .env STATE_DIRECTORY could influence bundled runtime dependency roots. Attackers can manipulate the STATE_DIRECTORY variable to load runtime dependencies from unintended local paths, potentially executing malicious code during dependency resolution.

## Affected packages

- `openclaw < 2026.5.2`

## Remediation

Refer to the advisory for the patched release.
