CVE-2026-25474: OpenClaw has a Telegram webhook request forgery (missing `channels.telegram.webhookSecret`) → auth bypass
OpenClaw before 2026.2.1 does not verify Telegram's secret-token header when `channels.telegram.webhookSecret` is unset. A reachable webhook then processes forged updates as if Telegram sent them, such as one with a spoofed `message.from.id`. Webhook mode is off by default. Upgrade to 2026.2.1.
Published Feb 17, 2026 · Updated Feb 19, 2026 · Analysis Nov 1, 2026
What an attacker can do
Telegram can sign each webhook call with a secret token header, X-Telegram-Bot-Api-Secret-Token. OpenClaw checks that header only when a secret is configured. With no webhookSecret, any HTTP client can post a JSON update to the endpoint, and the bot handles it as genuine. A forged message.from.id lets the sender pose as another Telegram user.
The feature is not on by default. It turns on only when channels.telegram.webhookUrl is set, so bots using the default polling mode have no such endpoint. For webhook users, risk depends on whether an attacker can reach the listener, and on which commands and tools the bot exposes. The result can be unintended bot actions. This advisory is scored at high severity with integrity impact only, and another OpenClaw entry for the same flaw rates it higher because it stresses allowlist bypass.
Who is affected
The openclaw npm package up to and including 2026.1.30 with channels.telegram.webhookUrl configured and no channels.telegram.webhookSecret. Check:
npm ls openclawThen search your OpenClaw config for the two channels.telegram keys. Bots without webhookUrl do not run the webhook listener.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.2.1
- Fixed in
- 2026.2.1
- Check
npm ls openclaw
How to fix it
Upgrade to 2026.2.1 or later:
npm install [email protected]Config validation now requires webhookSecret whenever webhookUrl is set (commit ca92597e1f9593236ad86810b66633144b69314d). Three supporting commits make startup fail when the secret is missing or empty, bind the listener to loopback by default, and bound the request body size and time.
If you cannot upgrade yet: set a strong channels.telegram.webhookSecret, check that your reverse proxy passes the secret-token header through unchanged, and keep the webhook endpoint off the open network by binding it to loopback and exposing it only through the proxy.
How to tell if you were hit
Look at reverse proxy logs for webhook POSTs that lack the X-Telegram-Bot-Api-Secret-Token header or come from sources other than Telegram. In the bot's message history, find commands attributed to users who were not active, or user IDs that never contacted the bot. Verify whether a secret was ever set by reading the Telegram section of your config.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
In Telegram webhook mode, if channels.telegram.webhookSecret is not set, OpenClaw may accept webhook HTTP requests without verifying Telegram’s secret token header. In deployments where the webhook endpoint is reachable by an attacker, this can allow forged Telegram updates (for example spoofing message.from.id).
Note: Telegram webhook mode is not enabled by default. It is enabled only when channels.telegram.webhookUrl is configured.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected:
<= 2026.1.30 - Patched:
>= 2026.2.1
Impact
If an attacker can reach the webhook endpoint, they may be able to send forged updates that are processed as if they came from Telegram. Depending on enabled commands/tools and configuration, this could lead to unintended bot actions.
Mitigations / Workarounds
- Set a strong
channels.telegram.webhookSecretand ensure your reverse proxy forwards theX-Telegram-Bot-Api-Secret-Tokenheader unchanged. - Restrict network access to the webhook endpoint (for example bind to loopback and only expose via a reverse proxy).
Fix Commit(s)
- ca92597e1f9593236ad86810b66633144b69314d (config validation:
webhookUrlrequireswebhookSecret)
Defense-in-depth / supporting fixes:
- 5643a934799dc523ec2ef18c007e1aa2c386b670 (default webhook listener bind host to loopback)
- 3cbcba10cf30c2ffb898f0d8c7dfb929f15f8930 (bound webhook request body size/time)
- 633fe8b9c17f02fcc68ecdb5ec212a5ace932f09 (runtime guard: reject webhook startup when secret is missing/empty)
Thanks @yueyueL for reporting.
Credited to yueyueL.
Questions
- Is Telegram webhook mode on by default?
No. It is enabled only when
channels.telegram.webhookUrlis configured.- What does an attacker need?
Network reach to the webhook endpoint. No credentials are needed, since the missing secret means requests are never authenticated.
- How do I confirm I am patched?
Run
npm ls openclawand check for 2026.2.1 or later. Startup should refuse a webhook config without a secret.
References
Read for this analysis:
- https://github.com/openclaw/openclaw/commit/3cbcba10cf30c2ffb898f0d8c7dfb929f15f8930
- https://github.com/openclaw/openclaw/commit/5643a934799dc523ec2ef18c007e1aa2c386b670
- https://github.com/openclaw/openclaw/commit/633fe8b9c17f02fcc68ecdb5ec212a5ace932f09
- https://github.com/openclaw/openclaw/commit/ca92597e1f9593236ad86810b66633144b69314d
- https://github.com/openclaw/openclaw/releases/tag/v2026.2.1
- https://nvd.nist.gov/vuln/detail/CVE-2026-25474
- https://github.com/advisories/GHSA-mp5h-m6qj-6292
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
