NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-32978: OpenClaw: Unrecognized script runners could bypass `system.run` approval integrity

highCVSS 3.1 8.0GHSA-qc36-x95h-7j53

OpenClaw's node-host `system.run` approvals did not bind the script file for runners such as `tsx` and `jiti`. An attacker can get a benign command approved, edit the script on disk, and have the altered code run in the approved context. The npm package `openclaw` is fixed in 2026.3.11.

Published Mar 13, 2026 · Updated Apr 6, 2026 · Analysis Oct 31, 2026

What an attacker can do

The approval planner tracked mutable script operands only for a hardcoded set of interpreters and runtime forms. A command like tsx ./run.ts or jiti ./run.ts had no bound file snapshot, so the final revalidation before execution was skipped (CWE-863).

The attack is a swap after approval. The operator approves a harmless script. Before it runs, the attacker modifies run.ts on disk. The node host then executes the modified code as the OpenClaw runtime user.

The attacker needs write access to the script path and a human approval step to occur. The CVSS vector marks high complexity, user interaction and changed scope. The outcome is local code execution with high confidentiality, integrity and availability impact. Teams that use system.run approvals as the check on what agents execute, especially with TypeScript runners in shared working directories, are the ones at risk.

Who is affected

openclaw versions before 2026.3.11 are affected. The weak spot is script runners outside the hardcoded interpreter list, tsx and jiti being the examples in the advisory. Check:

npm ls openclaw

openclaw

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

How to fix it

Upgrade to 2026.3.11 or later.

npm install -g [email protected]

OpenClaw now fails closed for approval-backed interpreter and runtime commands unless it can bind exactly one concrete local file operand. It also extends direct-file binding to more runtime forms. No other mitigation appears in the advisory.

How to tell if you were hit

Compare file modification times of scripts run through system.run against the approval time. A tsx or jiti script changed between approval and execution is a strong signal. Review recent writes to project scripts by processes other than your editor or build. Beam records agent shell commands and file access, which lets you line up a script edit with the command that ran afterward.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

In affected versions of openclaw, node-host system.run approvals did not bind a mutable file operand for some script runners, including forms such as tsx and jiti. An attacker could obtain approval for a benign script-runner command, rewrite the referenced script on disk, and have the modified code execute under the already approved run context.

Impact

Deployments that rely on node-host system.run approvals for script integrity could execute rewritten local code after operator approval. This can lead to unintended local code execution as the OpenClaw runtime user.

Affected Packages and Versions

  • Package: openclaw (npm)
  • Affected versions: < 2026.3.11
  • Fixed in: 2026.3.11

Technical Details

The approval planner only tracked mutable script operands for a hardcoded set of interpreters and runtime forms. Commands such as tsx ./run.ts and jiti ./run.ts fell through without a bound file snapshot, so the final pre-execution revalidation step was skipped.

Fix

OpenClaw now fails closed for approval-backed interpreter and runtime commands unless it can bind exactly one concrete local file operand, and it extends direct-file binding coverage for additional runtime forms. The fix shipped in [email protected].

Workarounds

Upgrade to 2026.3.11 or later.

Credited to tdjackey.

Questions

What is the difference from the other system.run approval bugs?

Here the runner (tsx, jiti) is not on the hardcoded list, so no file snapshot is taken and the script can change after approval.

Does it need user interaction?

Yes. An operator must approve the benign command first. The attacker then changes the script before it runs.

What fixes it?

openclaw 2026.3.11. It refuses approval-backed interpreter commands unless exactly one local file operand can be bound.

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