CVE-2026-53866: OpenClaw: Shell inline-command parsing could miss an allowlist check
OpenClaw 2026.5.10-beta.1 and earlier can run shell content without the expected allowlist or approval prompt. A command request that uses a shell inline-command form is routed through a parser case that never gets the allowlist decision. An authenticated operator can use it to run commands the policy should have stopped. Fixed in 2026.5.12.
Published Jun 18, 2026 · Analysis Oct 26, 2026
What an attacker can do
OpenClaw checks shell commands against an allowlist and asks for approval when a command is not allowed. Its parser handles several shapes of inline command, where the code is passed as a string to a shell. In affected versions one of those shapes took a path where the allowlist decision was never applied (CWE-184, an incomplete list of cases).
The attacker needs a low-privilege authenticated session that can submit command requests, and the feature must be enabled and reachable. The command then runs with the Gateway's rights, which the CVSS vectors rate as high for confidentiality and integrity. The bypass removes the approval step, so a command that would have paused for a human can run silently.
The advisory keeps OpenClaw's trusted-operator model. The flaw matters where allowlists and approvals are what separate lower-trust users or channels from the host.
Who is affected
The npm package openclaw at 2026.5.10-beta.1 and earlier. Check the installed version:
npm ls openclawSetups that rely on the shell allowlist or approval prompts to limit what operators or channels can run are the ones affected.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.5.10-beta.1
- Fixed in
- 2026.5.12
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.5.12, the first stable patched version:
npm install [email protected]Until then, require approval for shell inline-command forms. Keep channel and tool allowlists narrow, do not share one Gateway between mutually untrusted users, and disable the affected feature if you do not need it.
How to tell if you were hit
Review execution logs for shell invocations with inline-command flags (such as sh -c or bash -c) that ran without an approval record. Compare executed commands with your allowlist and look for ones that match no rule. Beam records agent shell commands, and its rules can flag inline shell commands for review.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Shell inline-command parsing could miss an allowlist check. In affected versions, a command request using shell inline-command forms could route an inline command through a parser case that did not receive the expected allowlist decision.
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 run shell content without the intended approval or allowlist prompt. 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.12.
Mitigations
require approval for shell inline-command forms 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 YLChen-007.
Questions
- Which OpenClaw versions are affected by CVE-2026-53866?
2026.5.10-beta.1 and earlier. The first stable patched version is 2026.5.12.
- Does this need authentication?
Yes. The CVSS vectors require low privileges, and no user interaction is needed.
- What can I do before upgrading?
Require approval for shell inline-command forms and keep allowlists narrow. Disable the feature if you do not need it.
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 entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
