Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconClone malicious repository
-
DeliveryNavigate to repo directory
-
ExploitRun OpenClaw command
-
InstallTrigger provider setup resolution
-
C2Load attacker's setup-api.js from cwd
-
ExecuteExecute arbitrary JavaScript
-
ImpactCompromise user account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path element control
|
| Exploitation Conditions | Exploitation requires the attacker to place a malicious extensions/<plugin>/setup-api.js file in a repository and convince a user to run OpenClaw commands from that specific directory. The user must execute OpenClaw with the attacker-controlled directory as the current working directory (process.cwd()), which occurs naturally when developers clone repositories and run tools from within the project root. No special OpenClaw configuration, non-default settings, or specific plugin installations are required-the vulnerability exists in the core plugin setup resolver used during ordinary provider/model metadata resolution. The attack is limited by user interaction (UI:R in CVSS) and local access scope-remote exploitation is not directly possible, but the attack can be delivered remotely via repository distribution (git clone, npm install, tarball download). Successful exploitation does not require the victim to have administrative privileges or special permissions; any user account running OpenClaw is vulnerable. |
| Impact | CVSS 7.8 (High) accurately reflects the attack requirements: local access vector (AV:L), low complexity (AC:L), no privileges required (PR:N), user interaction required (UI:R), with high confidentiality, integrity, and availability impact. Real-world risk is moderate because exploitation requires the user to clone/download a malicious repository and manually execute OpenClaw commands from that directory-this attack pattern resembles supply-chain or social engineering tactics rather than mass exploitation. No EPSS score, KEV status, or POC availability data provided, but the GitHub advisory and commit evidence confirm the vulnerability is real and fixed. The attack surface is limited to developers or users who run OpenClaw against untrusted codebases, making this primarily a supply-chain or insider risk rather than internet-facing. The user interaction barrier significantly reduces automated exploitation potential, though the lack of privilege requirements means any user account can be compromised if tricked. Security teams should prioritize this for environments where users routinely run OpenClaw against third-party or unvetted repositories (CI/CD pipelines, open-source contribution workflows). |
| Exploit ScenarioDerived | An attacker publishes a seemingly legitimate open-source project to GitHub containing a hidden extensions/some-plugin/setup-api.js file with malicious JavaScript (e.g., credential exfiltration, reverse shell, data destruction). A developer clones this repository, navigates into the project directory, and runs routine OpenClaw commands like provider status checks or model inspection. OpenClaw's plugin resolver loads the attacker's setup-api.js from process.cwd(), executing the malicious code under the developer's user account with full access to environment variables, filesystem, and network. The attacker gains code execution without requiring any authentication or special privileges beyond convincing the user to run OpenClaw from the malicious directory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 11, 2026
Arbitrary code execution in OpenClaw via CWD-based setup-api.js injection allows local attackers to run malicious JavaScript when users execute OpenClaw commands from attacker-controlled directories. Affects all OpenClaw versions before 2026.4.23. Vendor-released patch available in version 2026.4.23. Exploitation requires user interaction (running OpenClaw commands from a malicious repository) but no authentication. CVSS 7.8 reflects local attack vector with user interaction requirement, mitigating remote exploitation risk.
RemediationAI
Upgrade to OpenClaw version 2026.4.23 or later, which removes process.cwd() from the setup-api search path and restricts module resolution to the canonical package root. The fix is available via npm (npm install openclaw@2026.4.23 or npm update openclaw) and documented in GitHub commit 993781e6e6eaf50f033cfc3e3bf4f47059740707 (https://github.com/openclaw/openclaw/commit/993781e6e6eaf50f033cfc3e3bf4f47059740707). If immediate patching is not possible, implement compensating controls: restrict OpenClaw execution to trusted directories only, use read-only mounts or filesystem permissions to prevent users from writing to directories where OpenClaw will be executed, and run OpenClaw in isolated containers or VMs when processing untrusted repositories. These workarounds reduce attack surface but introduce operational overhead (restricted developer workflows, container management complexity) and do not fully eliminate risk if users can still influence the working directory. Full vendor advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-r39h-4c2p-3jxp and VulnCheck analysis at https://www.vulncheck.com/advisories/openclaw-arbitrary-code-execution-via-setup-api-js-in-current-working-directory.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability stems from CWE-427 (Uncontrolled Search Path Element), where OpenClaw's plugin setup resolver incorrectly trusted process.cwd() as a search path for bundled setup-api.js modules during provider setup metadata resolution. When resolving provider configuration, the application would search for extensions/<plugin>/setup-api.js in multiple locations including the current working directory. Node.js module resolution combined with process.cwd() creates a DLL-hijacking-style attack where an attacker-controlled file takes precedence over legitimate bundled modules. The fix removes process.cwd() from the repoRootCandidates array, restricting setup-api resolution to only the canonical package root (CURRENT_MODULE_PATH ancestor), and adds regression testing to verify workspace-local setup-api.js files are ignored. This is a classic untrusted search path vulnerability affecting JavaScript/Node.js applications that dynamically load code based on runtime working directory.
Know when Openclaw gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
OpenClaw before 2026.4.23 contains an arbitrary code execution vulnerability in the bundled plugin setup resolver that loads setup-api.js from process.cwd() during provider setup metadata resolution. Attackers can execute arbitrary JavaScript under the current user account by placing a malicious extensions/<plugin>/setup-api.js file in a repository and convincing a user to run OpenClaw commands from that directory.
Blast Radius
ecosystem impact- 1 npm packages depend on openclaw (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.4.23.
Executive ViewAI
OpenClaw versions before 2026.4.23 contain an arbitrary code execution vulnerability allowing attackers to inject malicious JavaScript that executes when users run OpenClaw commands from attacker-controlled directories. This impacts organizations where developers work with untrusted code repositories, potentially compromising developer machines and the software supply chain. Immediate patching is required to prevent exploitation through social engineering or compromised project repositories.
Apply vendor patch. If immediate patching is not possible, restrict OpenClaw execution to verified/trusted project directories only and prohibit developers from running OpenClaw commands from external or untrusted repositories until version 2026.4.23 is deployed.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.
Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b
OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att
An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.
OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e
Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in
Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses
Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a
Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach
Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev
OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director
OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func
EUVD-2026-29149
GHSA-xpr6-2hgm-4wwp
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB