CVE-2026-35661: OpenClaw: Telegram DM-Scoped Inline Button Callbacks Bypass DM Pairing and Mutate Session State
OpenClaw 2026.3.24 and earlier let an unpaired Telegram user press inline buttons in a direct message and change session state, for example the selected model, without DM pairing. The package data lists 2026.3.28 as the patched version.
Published Mar 29, 2026 · Updated Apr 10, 2026 · Analysis Oct 31, 2026
What an attacker can do
OpenClaw's Telegram extension requires DM pairing before a sender can talk to the agent. Inline button presses arrive differently, as Telegram callback queries, and they went through a weaker authorization mode. In extensions/telegram/src/bot-handlers.runtime.ts, the allowlist mode applied only under certain conditions. A DM callback from a user who was never paired skipped it.
The fix's regression test shows the consequence: with dmPolicy set to pairing and inlineButtons set to dm, a model-selection callback (mdl_sel_...) from an unlisted user changed session state. The attacker needs only a Telegram account that can message the bot and a callback payload, with no privileges and no user interaction (CWE-288, CWE-863).
The CVSS 3.1 vector is 5.3 with low integrity impact. An outsider could change which model a session uses or touch other session state those buttons control. That could raise your costs or move the session to a model you did not approve. The advisory reports no data leak and no code execution.
Who is affected
openclaw 2026.3.24 and earlier, where the Telegram extension runs with dmPolicy "pairing" and inlineButtons scoped to DMs ("dm") or similar. Deployments without inline buttons in DMs are less exposed. Check the version:
npm ls openclawopenclaw
- 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:
npm install [email protected]The advisory body says 2026.3.25 is the first patched version; the package data says 2026.3.28. Use that or newer. Commit 269282ac69ab sets the callback authorization mode to "callback-allowlist" for every non-group callback, so DM callbacks pass the same sender gate as DM commands. The sources name no workaround.
How to tell if you were hit
Compare Telegram sender IDs in your session records and logs with your paired or allowlisted users. Look for model or setting changes on a session that you did not make. After the fix, an unauthorized callback gets no reply and no edit, and the session store stays unchanged, though Telegram's answerCallbackQuery is still called.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Telegram DM-Scoped Inline Button Callbacks Bypass DM Pairing and Mutate Session State
Affected Packages / Versions
- Package:
openclaw - Affected versions:
<= 2026.3.24 - First patched version:
2026.3.25 - Latest published npm version at verification time:
2026.3.24
Details
Telegram callback queries from direct messages previously used weaker callback-only authorization and could mutate session state without satisfying normal DM pairing. Commit 269282ac69ab6030d5f30d04822668f607f13065 enforces DM authorization for callbacks.
Verified vulnerable on tag v2026.3.24 and fixed on main by commit 269282ac69ab6030d5f30d04822668f607f13065.
Fix Commit(s)
269282ac69ab6030d5f30d04822668f607f13065
Credited to zpbrent.
Questions
- Does CVE-2026-35661 let a stranger chat with my agent?
Normal DM messages were still gated by pairing. The gap was in inline button callbacks, which could change session state such as the model selection.
- Are group chats affected?
The fix targets DM-scoped callbacks. Group callbacks already used their own authorization mode, per the commit diff.
- Is it exploited in the wild?
No source I read reports exploitation, and the entry has no CISA catalog 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
