GHSA-qrp5-gfw2-gxv4: OpenClaw: Bundled MCP/LSP tools could bypass configured tool policy
OpenClaw versions before 2026.4.20 added bundled MCP and LSP tools to the agent's tool set after tool policy had already run. A tool that the operator's policy should deny could stay available to the agent. The fix is OpenClaw 2026.4.20. Severity is medium and the issue is local.
Published Apr 25, 2026 · Analysis Oct 29, 2026
What an attacker can do
OpenClaw builds an agent's effective tool set by running core tools through a policy pipeline. Bundled MCP and LSP tools were appended after that filtering, so no policy touched them.
That breaks every restriction an operator might set: tool profiles, explicit allow and deny lists, owner-only restrictions, sandbox tool policy and subagent tool policy. A denied bundled tool stayed callable by the agent. A subagent meant to be limited, or a sandboxed run, could still reach it.
The flaw needs two conditions. A bundled MCP or LSP tool source must be configured. An operator policy must exist that should restrict that tool. The advisory calls it a local policy-enforcement bypass, not an unauthenticated remote gateway compromise. In practice the risk grows if an agent is steered by a prompt injection from a repo or web page. The injected text could then call an MCP tool that the team thought was blocked, such as one that reads files or reaches external services.
Who is affected
The npm package openclaw is affected in versions below 2026.4.20. Only setups with a bundled MCP or LSP tool source and a restrictive tool policy are exposed. Check the installed version:
npm ls openclaw
npm ls -g openclawAny result older than 2026.4.20 needs the upgrade.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.4.20
- Fixed in
- 2026.4.20
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.4.20:
npm install [email protected]The fix commit adds applyFinalEffectiveToolPolicy, which runs the policy pipeline over the bundled MCP/LSP tools before they merge with core tools. It runs for normal runs (runEmbeddedAttempt) and for compaction (compactEmbeddedPiSessionDirect). It covers profile, provider profile, global, agent and group policies, owner-only filtering, sandbox policy and subagent policy. The advisory gives no workaround. Until you upgrade, remove bundled MCP/LSP sources you do not trust the agent to use.
How to tell if you were hit
List the MCP and LSP tool sources configured for each OpenClaw agent, and compare them with your deny lists and profiles. Look in session logs for calls to bundled MCP or LSP tools that your policy denies; any such call on a version below 2026.4.20 is a policy bypass. Beam records agent MCP tool calls, and its rules can flag calls to tools you meant to block.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
< 2026.4.20 - Patched version:
2026.4.20
Impact
Bundled MCP and LSP tools could be appended to the agent's effective tool set after the normal tool-policy pipeline had already filtered core tools. If an operator configured a restrictive policy, such as a tool profile, explicit allow/deny list, owner-only tool restriction, sandbox tool policy, or subagent tool policy, a bundled MCP/LSP tool could remain available even though the same policy would have denied it.
The issue required a configured bundled MCP or LSP tool source and an operator policy that should have restricted that tool. This was a local agent policy-enforcement bypass, not an unauthenticated remote gateway compromise. Severity is medium.
Fix
OpenClaw now applies a final effective tool policy pass to bundled MCP/LSP tools before merging them into the tool set used by normal runs and compaction. The pass covers profile policy, provider profile policy, global/agent/group policies, owner-only filtering, sandbox tool policy, and subagent tool policy.
Fix commit:
0e7a992d3f3155199c1acc2dd9a53c5b3a4d3ada
Release
Fixed in OpenClaw 2026.4.20.
Credited to zsxsoft, KeenSecurityLab, qclawer.
Questions
- Is GHSA-qrp5-gfw2-gxv4 remotely exploitable?
The advisory says no. It is a local agent policy-enforcement bypass, not an unauthenticated remote gateway compromise. It needs a configured bundled MCP or LSP tool source and a policy that should have denied that tool.
- Which OpenClaw version fixes the MCP/LSP tool policy bypass?
OpenClaw 2026.4.20. All earlier versions of the openclaw npm package are affected. The fix commit is 0e7a992d3f3155199c1acc2dd9a53c5b3a4d3ada.
- Which policies were bypassed?
Tool profiles, explicit allow and deny lists, owner-only tool restrictions, sandbox tool policy and subagent tool policy. Each could fail to deny a bundled MCP or LSP tool.
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
