OpenClaw Arbitrary Code Execution Vulnerability in Plugin Setup Resolver

Vulnerability

A vulnerability allowing arbitrary code execution has been identified in OpenClaw versions prior to 2026.4.23. The issue arises in the bundled plugin setup resolver, which improperly loads the setup-api.js file from the current working directory during the resolution of provider setup metadata. This flaw allows attackers to execute arbitrary JavaScript under the current user account. Exploitation involves placing a malicious setup-api.js file in a specific directory and convincing the user to execute OpenClaw commands from there.

Impact

Successful exploitation allows attackers to execute arbitrary JavaScript in the OpenClaw process, under the current user account. This could lead to unauthorized actions or access to sensitive information, depending on the executed code.

Reproduction

To reproduce this vulnerability, create a malicious 'setup-api.js' file containing arbitrary JavaScript code and place it in the 'extensions/<plugin>/' directory of an OpenClaw repository. Then, run an OpenClaw command from that directory. The malicious code will be executed during the provider setup resolution process.

Remediation

Users can update to OpenClaw version 2026.4.23 or later, where this vulnerability has been fixed.

Added: May 11, 2026, 6:59 PM
Updated: May 11, 2026, 6:59 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
5.3
remediation
0.0
relevance
8.0
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.