Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. openclaw
  4. ›
  5. GHSA-r39h-4c2p-3jxp

GHSA-r39h-4c2p-3jxp: OpenClaw vulnerable to arbitrary code execution via attacker-controlled setup-api.js loaded from cwd during env-key resolution

May 5, 2026

OpenClaw’s bundled plugin setup resolver could fall back to process.cwd() while resolving provider setup metadata. If a user ran an OpenClaw command from an attacker-controlled repository containing extensions/<plugin>/setup-api.js, OpenClaw could load and execute that JavaScript during ordinary provider/model status resolution.

References

  • github.com/advisories/GHSA-r39h-4c2p-3jxp
  • github.com/openclaw/openclaw
  • github.com/openclaw/openclaw/commit/993781e6e6eaf50f033cfc3e3bf4f47059740707
  • github.com/openclaw/openclaw/security/advisories/GHSA-r39h-4c2p-3jxp

Code Behaviors & Features

Detect and mitigate GHSA-r39h-4c2p-3jxp 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.4.23

Fixed versions

  • 2026.4.23

Solution

Upgrade to version 2026.4.23 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-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/openclaw/GHSA-r39h-4c2p-3jxp.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 00:19:26 +0000.