NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-35661: OpenClaw: Telegram DM-Scoped Inline Button Callbacks Bypass DM Pairing and Mutate Session State

mediumCVSS 4.0 6.9 · 3.1 5.3GHSA-j4c9-w69r-cw33

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 openclaw

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:

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 entries