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

CVE-2026-53864: OpenClaw: Host environment sanitizer missed two Node.js control variables

highCVSS 4.0 7.6 · 3.1 8.1GHSA-ccwh-wwpp-6wg5

OpenClaw 2026.5.22 and earlier have a host environment sanitizer that misses two Node.js control variables. Values from a workspace `.env`, a tool env override or a skill env block can pass through it and reach later Node.js child processes. Fixed in 2026.5.26.

Published Jun 18, 2026 · Analysis Oct 26, 2026

What an attacker can do

OpenClaw runs an environment sanitizer that strips dangerous variables before it passes lower-trust env values to child processes. The block list was incomplete (CWE-184): two Node.js control variables were not on it. The advisory does not name them, so check the 2026.5.26 release notes or fix commit if you need the exact names.

Three sources can feed the sanitizer: a workspace .env in a repository, a tool env override, and a skill env block. An attacker who controls one of them, for example through a malicious repository or skill, can set the missed variables. When OpenClaw later launches a Node.js child process under that accepted environment, the variables can change how the process behaves, or where its coverage output is written. The CVSS vectors rate confidentiality and integrity impact as high, with low privileges required.

The advisory keeps OpenClaw's trusted-operator model. The risk is limited to setups where untrusted repositories or skills can supply environment values.

Who is affected

The npm package openclaw at 2026.5.22 and earlier. Check the installed version:

npm ls openclaw

You are most exposed if you open untrusted repositories with a .env, install third-party skills with env blocks, or let tools override the environment.

openclaw

Ecosystem
npm
Affected
<= 2026.5.22
Fixed in
2026.5.26
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.5.26, the first stable patched version:

npm install [email protected]

Until then, avoid inheriting workspace or tool-supplied env values from untrusted repositories. Keep channel and tool allowlists narrow, do not share one Gateway between mutually untrusted users, and disable the affected feature if it is not needed.

How to tell if you were hit

Inspect workspace .env files, skill env blocks and tool env overrides for NODE_* style settings you did not add. Look for unexpected Node.js child processes started by the Gateway, and for coverage output files in unusual places. Beam logs agent shell commands and file access, which shows what a Node.js child process ran and wrote.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Host environment sanitizer missed two Node.js control variables. In affected versions, a lower-trust env source such as a workspace .env, tool env override, or skill env block could pass Node.js control variables through the shared sanitizer.

This advisory is scoped to the named feature and configuration. It does not change OpenClaw's trusted-operator model: authenticated Gateway operators, installed plugins, and intentional local execution surfaces remain trusted unless a separate policy, approval, allowlist, sandbox, or auth boundary is crossed.

Impact

When the affected feature is enabled and reachable, this could influence a later Node.js child process or coverage output path when that process is launched under the accepted environment. Practical impact depends on the operator's configuration and whether lower-trust input can reach that path.

Patched Versions

The first stable patched version is 2026.5.26.

Mitigations

avoid inheriting workspace or tool-supplied env values from untrusted repositories until patched. As general hardening, keep channel and tool allowlists narrow, avoid sharing one Gateway between mutually untrusted users, and disable the affected feature when it is not needed.

Credited to nayakchinmohan.

Questions

Which two variables did the sanitizer miss?

The advisory does not name them. Read the 2026.5.26 release notes or the fix commit for the list.

Which version fixes CVE-2026-53864?

openclaw 2026.5.26. Versions up to and including 2026.5.22 are affected.

Where can the malicious values come from?

From a workspace .env, a tool env override or a skill env block, per the advisory.

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