Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. openclaw
  4. ›
  5. CVE-2026-45004

CVE-2026-45004: OpenClaw vulnerable to arbitrary code execution via attacker-controlled setup-api.js loaded from cwd during env-key resolution

May 5, 2026 (updated May 19, 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/commit/993781e6e6eaf50f033cfc3e3bf4f47059740707
  • github.com/openclaw/openclaw/security/advisories/GHSA-r39h-4c2p-3jxp
  • nvd.nist.gov/vuln/detail/CVE-2026-45004
  • www.vulncheck.com/advisories/openclaw-arbitrary-code-execution-via-setup-api-js-in-current-working-directory

Code Behaviors & Features

Detect and mitigate CVE-2026-45004 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/CVE-2026-45004.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 23 Jun 2026 12:23:38 +0000.