AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-42423: OpenClaw: strictInlineEval explicit-approval boundary bypassed by approval-timeout fallback on gateway and node exec hosts

mediumCVSS 4.0 5.9 · 3.1 7.5GHSA-q2gc-xjqw-qp89

OpenClaw 2026.4.2 and earlier lets inline eval commands run without the explicit approval that strictInlineEval is meant to require. When an approval request times out, a fallback allows the command instead of denying it, on gateway and node exec hosts. Upgrade to openclaw 2026.4.8.

Published Apr 9, 2026 · Updated May 6, 2026 · Analysis Nov 6, 2026

What an attacker can do

strictInlineEval is an OpenClaw setting that forces explicit human approval for inline eval commands, such as an interpreter run with code passed on the command line. The approval-timeout fallback on gateway and node exec hosts undermined it. If the approval request timed out, the fallback let the command proceed. This is a fail-open design, classed as CWE-636 together with CWE-20.

The approval prompt is the control that sits between the agent and the shell. An attacker who can get the agent to propose an inline eval command, for example through prompt injection in content the agent reads, no longer needs the operator to click approve. Waiting for the timeout is enough.

The advisory scopes this to OpenClaw's trust model: a user-controlled local assistant, not a multi-tenant service. So the realistic harm is code execution as the OpenClaw user on the gateway or node host, with that user's files and credentials. The CVSS 3.1 vector (AV:N/AC:H/PR:L) reflects that reaching the exec path takes some access and the right timing.

Who is affected

Affected: the npm package openclaw up to and including 2026.4.2. The package data lists the vulnerable range as below 2026.4.8. The bypass applies to gateway and node exec hosts with strictInlineEval relied on as a guard.

Check the installed version:

npm ls -g openclaw

openclaw

Ecosystem
npm
Affected
< 2026.4.8
Fixed in
2026.4.8
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.4.8:

npm install -g [email protected]

The maintainers say the fix was checked against main, with regression tests for the approval boundary. The advisory lists no workaround. Until you upgrade, do not leave an agent unattended on a host where inline eval approvals rely on strictInlineEval.

How to tell if you were hit

The advisory gives no log lines. Review exec logs on gateway and node hosts for inline eval commands (an interpreter with an inline code flag) that have no matching approval record, or whose approval request ended by timeout. Compare the shell history of the OpenClaw user with the approvals you actually granted. Beam records agent shell commands and its rules flag risky ones, which gives a second record of what ran.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

strictInlineEval explicit-approval boundary bypassed by approval-timeout fallback on gateway and node exec hosts.

The approval-timeout fallback could allow inline eval commands that strictInlineEval was meant to require explicit approval for.

OpenClaw is a user-controlled local assistant. This advisory is scoped to the OpenClaw trust model and does not assume a multi-tenant service boundary.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected versions: <=2026.4.2
  • Patched versions: 2026.4.8

Fix

The issue was fixed on main and is available in the patched npm version listed above. The verified fixed tree is commit d7c3210cd6f5fdfdc1beff4c9541673e814354d5.

Verification

The fix was re-checked against main before publication, including targeted regression tests for the affected security boundary.

Credits

Thanks @zsxsoft and @KeenSecurityLab for reporting.

Credited to zsxsoft, KeenSecurityLab.

Questions

Does CVE-2026-42423 need user interaction?

No. The CVSS vector says none. The bypass depends on an approval request timing out, so the operator simply not answering is enough.

Which OpenClaw version fixes it?

2026.4.8. Versions up to and including 2026.4.2 are affected, as the advisory states.

Is it a remote attack?

The vector says network, high complexity and low privileges. The advisory scopes OpenClaw as a user-controlled local assistant, not a multi-tenant service.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More OpenClaw vulnerabilities

All OpenClaw entries