Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. openclaw
  4. ›
  5. GHSA-jx3c-247h-cxwp

GHSA-jx3c-247h-cxwp: Duplicate Advisory: OpenClaw: Workspace `.env` can override the bundled hooks root and load attacker hook code

April 24, 2026 (updated May 4, 2026)

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-3qpv-xf3v-mm45. This link is maintained to preserve external references.

Original Description

OpenClaw before 2026.3.31 allows workspace .env files to override the OPENCLAW_BUNDLED_HOOKS_DIR environment variable, enabling loading of attacker-controlled hook code. Attackers can replace trusted default-on bundled hooks from untrusted workspaces to execute arbitrary code.

References

  • github.com/advisories/GHSA-jx3c-247h-cxwp
  • github.com/openclaw/openclaw
  • github.com/openclaw/openclaw/commit/330a9f98cb29c79b1c16a2117e03d6276a0d6289
  • github.com/openclaw/openclaw/security/advisories/GHSA-3qpv-xf3v-mm45
  • nvd.nist.gov/vuln/detail/CVE-2026-41336
  • www.vulncheck.com/advisories/openclaw-arbitrary-hook-code-execution-via-openclaw-bundled-hooks-dir-environment-variable-override

Code Behaviors & Features

Detect and mitigate GHSA-jx3c-247h-cxwp with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2026.3.31

Fixed versions

  • 2026.3.31

Solution

Upgrade to version 2026.3.31 or above.

Impact 7.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-829: Inclusion of Functionality from Untrusted Control Sphere

Source file

npm/openclaw/GHSA-jx3c-247h-cxwp.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:01 +0000.