GHSA-w5c7-9qqw-6645: OpenClaw inter-session prompts could be treated as direct user instructions
OpenClaw stored messages sent between sessions with `sessions_send` as ordinary `role: "user"` turns with no record of where they came from. A delegated or internal session could then pass instructions that looked like direct end-user input. Versions up to 2026.2.12 are affected. Upgrade to 2026.2.13.
Published Feb 18, 2026 · Analysis Oct 31, 2026
What an attacker can do
This is an instruction-provenance flaw, a confused-deputy pattern (CWE-345). A prompt routed from one session to another was saved as a regular user turn. Downstream workers, transcript readers and the model itself could not tell external user input from internal inter-session input.
The practical risk is in multi-session and multi-agent setups. A session that handles untrusted content, such as a web page, an inbound chat or a sub-agent, can call sessions_send on a more privileged session. That session treats the message as if the user had typed it. Any workflow that trusts role: "user" as its only authority signal then acts on it, which can mean tool use or actions the sending session was not allowed to take.
The attacker needs enough access to influence one session that can reach sessions_send. The CVSS 4.0 vector requires low privileges and rates integrity impact high. No CVE id was assigned to this advisory.
Who is affected
The npm package openclaw at 2026.2.12 or earlier, which the package data writes as below 2026.2.13. The risk exists where you run several sessions or agents and sessions_send is available to them. Check:
npm ls -g openclaw
openclaw --versionopenclaw
- Ecosystem
- npm
- Affected
- < 2026.2.13
- Fixed in
- 2026.2.13
- Check
npm ls openclaw
How to fix it
Upgrade to 2026.2.13, the patched version (commit 85409e4):
npm install -g [email protected]OpenClaw now carries structured provenance (inputProvenance) with a kind of inter_session. It is stored on the message as message.provenance.kind = "inter_session", and the role stays user for provider compatibility. Transcript readers and memory helpers respect it, and rebuilt context marks these turns with [Inter-session message]. Workarounds if you cannot upgrade: disable or restrict sessions_send, and do not use role alone as an authority boundary in your own orchestration logic.
How to tell if you were hit
Search session transcripts for user turns that came from sessions_send rather than a person. On patched versions these carry message.provenance.kind = "inter_session". On older versions there is no marker, so compare transcript timing with sessions_send tool calls in the sending session. Look for privileged actions that follow such turns. Beam records agent tool calls, including MCP tool calls, which gives you a trail of what ran after a routed prompt.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Inter-session messages sent via sessions_send could be interpreted as direct end-user instructions because they were persisted as role: "user" without provenance metadata.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
<= 2026.2.12(i.e.< 2026.2.13) - Fixed in:
2026.2.13(patched versions>= 2026.2.13)
Impact
A delegated or internal session could inject instructions into another session that appeared equivalent to externally-originated user input.
This is an instruction-provenance confusion issue (confused-deputy style), which can lead to unintended privileged behavior in workflows that trust role: "user" as a sole authority signal.
Technical details
Before the fix, routed inter-session prompts were stored as regular user turns without a verifiable source marker.
As a result, downstream workers and transcript readers could not distinguish:
- External user input
- Internal inter-session routed input
Fix
OpenClaw now carries explicit input provenance end-to-end for routed prompts.
Key changes:
- Added structured provenance model (
inputProvenance) withkindvalues includinginter_session. sessions_sendand agent-to-agent steps now set inter-session provenance when invoking target runs.- Provenance is persisted on user messages as
message.provenance.kind = "inter_session"(role remainsuserfor provider compatibility). - Transcript readers and memory helpers were updated to respect provenance and avoid treating inter-session prompts as external user-originated input.
- Runtime context rebuilding now annotates inter-session turns with an explicit in-memory marker (
[Inter-session message]) for clearer model-side disambiguation. - Regression tests were added for transcript parsing, session tools flow, runner sanitization, and memory hook behavior.
Fix Commit(s)
85409e401b6586f83954cb53552395d7aab04797
Workarounds
If immediate upgrade is not possible:
- Disable or restrict
sessions_sendin affected environments. - Do not use role alone as an authority boundary; require provenance-aware checks in orchestration logic.
Credit
Reported by @anbecker.
Thanks @anbecker for reporting.
Credited to anbecker.
Questions
- Does this advisory have a CVE id?
No. It is tracked only as GHSA-w5c7-9qqw-6645.
- Which version fixes it?
2026.2.13. Versions up to and including 2026.2.12 are affected.
- What is the workaround if I cannot upgrade?
Disable or restrict
sessions_send, and do not rely onrole: "user"alone as a trust boundary in orchestration logic.- Does the fix change the message role?
No. The role stays
userfor provider compatibility. The fix adds provenance metadata and an in-memory[Inter-session message]marker.
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
