openclaw

CVE-2026-45004

CVE-2026-45004 is a high-severity code injection vulnerability in openclaw (npm), affecting versions < 2026.4.23. It is fixed in 2026.4.23.

Key facts
CVSS score
7.8
High
Attack vector
Local
Issuing authority
GitHub Advisory Database
Affected package
openclaw
Fixed in
2026.4.23
Disclosed
2026

Summary

Summary 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. Impact This is arbitrary JavaScript execution in the OpenClaw process under the current user account. A malicious repository could run code when the user executed commands such as provider/model inspection from that directory. The issue does not require gateway network exposure, but it does require user interaction: the user must run OpenClaw from a directory containing the attacker-controlled setup file. Affected Packages / Versions Package: openclaw on npm Affected: versions before 2026.4.23 Fixed: 2026.4.23 Latest stable verified fixed: [email protected], tag v2026.4.23 Fix OpenClaw now resolves bundled setup fallbacks only from the canonical package/repository root and no longer includes process.cwd() as a trusted setup-api search root. A regression test verifies that a workspace-local extensions/<plugin>/setup-api.js is not loaded through provider setup resolution. Fix Commit(s) 993781e6e6eaf50f033cfc3e3bf4f47059740707 (fix(plugins): ignore cwd setup-api fallback) Severity Severity remains high because successful exploitation allows arbitrary code execution under the user running OpenClaw. The CVSS vector is local/user-interaction scoped rather than network-only because the victim must run OpenClaw from an attacker-controlled directory.

Impact

What is code injection?

Untrusted input is evaluated as executable code within the application's runtime environment. Typical impact: arbitrary code execution within the application's privilege context.

Severity and exposure

CVE-2026-45004 has a CVSS score of 7.8 (High). The vector is requires local access, no privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment.

A fixed version is available (2026.4.23). Upgrading removes the vulnerable code path.

Affected versions

npm

  • openclaw (< 2026.4.23)

Security releases

  • openclaw → 2026.4.23 (npm)
Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.

Kodem's Application Detection and Response identifies whether CVE-2026-45004 is reachable in your applications. Explore runtime application protection for your team.

See if CVE-2026-45004 is reachable in your applications. Get a demo

Remediation advice

Upgrade openclaw to 2026.4.23 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently asked questions about CVE-2026-45004

What is CVE-2026-45004?

CVE-2026-45004 is a high-severity code injection vulnerability in openclaw (npm), affecting versions < 2026.4.23. It is fixed in 2026.4.23. Untrusted input is evaluated as executable code within the application's runtime environment.

How severe is CVE-2026-45004?

CVE-2026-45004 has a CVSS score of 7.8 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.

Which versions of openclaw are affected by CVE-2026-45004?

openclaw (npm) versions < 2026.4.23 is affected.

Is there a fix for CVE-2026-45004?

Yes. CVE-2026-45004 is fixed in 2026.4.23. Upgrade to this version or later.

Is CVE-2026-45004 exploitable, and should I be worried?

Whether CVE-2026-45004 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo

What actually determines whether CVE-2026-45004 is exploitable, and how bad it is?

Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.

How do I fix CVE-2026-45004?

Upgrade openclaw to 2026.4.23 or later.

Stop the waste.
Protect your environment with Kodem.