GHSA-v3qc-wrwx-j3pw: OpenClaw: Agentic Consent Bypass — LLM Agent Can Silently Disable Exec Approval via `config.patch`
In OpenClaw up to 2026.3.24, the LLM agent's gateway tool could call `config.patch` or `config.apply` to change the exec approval settings. The agent could switch off the approval prompt that guards its own shell commands, without the user seeing it. Fixed in 2026.3.28.
Published Apr 3, 2026 · Analysis Oct 30, 2026
What an attacker can do
OpenClaw asks the user to approve risky shell commands. That behavior is stored in two config paths, tools.exec.ask and tools.exec.security. The agent also has a gateway tool that can write the gateway config through config.patch and config.apply. In the affected versions nothing stopped the agent from editing those two paths.
A prompt-injected agent, or one that follows instructions hidden in a web page, issue or document, could send a patch that sets exec approval to off. Every later command then runs without a prompt. The consent step the user relied on is removed, and the change is silent. The result is that an injected instruction gets arbitrary command execution as the user running OpenClaw.
The CVSS vector is local with low privileges, and the weight is on integrity. The attacker needs to influence what the agent does, for example through untrusted content the agent reads.
Who is affected
The npm package openclaw, versions 2026.3.24 and earlier. Any setup where the agent has the gateway config tool and exec approval is part of your safety model is exposed. Check the version and the current exec settings:
npm ls openclaw
openclaw --versionReview tools.exec.ask and tools.exec.security in your config for values you did not set.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.24
- Fixed in
- 2026.3.28
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.28 or later; v2026.3.28 is the first stable tag with the fix.
npm install -g [email protected]The fix in src/agents/tools/gateway-tool.ts keeps a list of protected paths, tools.exec.ask and tools.exec.security. Before a config.patch or config.apply is forwarded, it compares the current and the proposed config. If either path would change, even through the legacy tools.bash alias, the call throws an error. Check those two settings after you upgrade, in case a past change slipped in. The sources list no workaround.
How to tell if you were hit
Compare tools.exec.ask and tools.exec.security in the gateway config with the values you intended. Search agent session logs for gateway tool calls to config.patch or config.apply, particularly ones that mention tools.exec or tools.bash. Look for a run of shell commands that executed without any approval prompt. Beam records agent shell commands and file access, so a command history with no approvals can be matched against the config change.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Agentic Consent Bypass: LLM Agent Can Silently Disable Exec Approval via config.patch
Current Maintainer Triage
- Status: open
- Normalized severity: high
- Assessment: Maintainers accepted this issue, fixed it in 76411b2afc4ae721e36c12e0ea24fd23e2fed61e on 2026-03-27, and that fix shipped in v2026.3.28, so normalize it as a fixed released draft rather than a close-by-trust-model call.
Affected Packages / Versions
- Package:
openclaw(npm) - Latest published npm version:
2026.3.31 - Vulnerable version range:
<=2026.3.24 - Patched versions:
>= 2026.3.28 - First stable tag containing the fix:
v2026.3.28
Fix Commit(s)
76411b2afc4ae721e36c12e0ea24fd23e2fed61e— 2026-03-27T09:42:15Z
OpenClaw thanks @YLChen-007 for reporting.
Credited to YLChen-007.
Questions
- Which OpenClaw version fixes the exec approval bypass?
2026.3.28. Versions up to and including 2026.3.24 are affected. The fix commit is 76411b2, dated 2026-03-27.
- Which settings can the agent no longer change?
tools.exec.ask and tools.exec.security, through config.patch or config.apply. Writes through the legacy tools.bash alias that would alter them are blocked too.
- Is there a CVE for this?
This entry has only the GitHub advisory id GHSA-v3qc-wrwx-j3pw. No CVE id appears in the advisory data.
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
