CVE-2026-32980: OpenClaw Telegram webhook request bodies were read before secret validation, enabling unauthenticated resource exhaustion
OpenClaw's standalone Telegram webhook listener, in versions up to and including 2026.3.12, read and parsed each POST body before it checked the x-telegram-bot-api-secret-token header. Anyone who can reach the webhook can make the server do body I/O and JSON parsing for requests that should be rejected, which exhausts resources. Fixed in openclaw 2026.3.13.
Published Mar 16, 2026 · Updated Apr 1, 2026 · Analysis Oct 31, 2026
What an attacker can do
The vulnerable handler is in src/telegram/webhook.ts. It accepted POST requests, called readJsonBodyWithLimit(...) and only then compared the secret header. The secret is the only authentication on this ingress path, so a caller with no secret still made the server buffer the body and parse JSON, up to the configured webhook body limit per request. A changelog entry cited by the fix says up to 1 MB.
The attacker needs network access to the webhook listener and nothing else: no account, no secret, no user action. They send many requests with large bodies. Memory, socket time and CPU go to work that should have been dropped at once, so the bot's Telegram channel can slow or stop, and a host shared with other services may suffer too (CWE-400, CWE-770).
The CVSS vectors rate availability high and everything else none. The flaw gives no data access and no code execution. It matters for teams that expose an OpenClaw Telegram webhook to the internet, as Telegram requires for webhook delivery. Deployments that use polling, not a webhook, do not run this listener.
Who is affected
The npm package openclaw up to and including 2026.3.12, where the Telegram channel runs in webhook mode with the standalone listener. Check the installed version:
npm ls openclaw
openclaw --versionIf you use Telegram long polling and no webhook, the vulnerable listener is not in use.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.12
- Fixed in
- 2026.3.13
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.13:
npm install -g [email protected]The fix commit 7e49e98 checks the secret first. A request with a missing or wrong x-telegram-bot-api-secret-token now gets a 401 with the body unauthorized and a closed connection, and readJsonBodyWithLimit(...) runs only after hasValidTelegramWebhookSecret(...) succeeds. The comparison uses timingSafeEqual. The sources give no workaround. A reverse proxy in front that limits request size and rate would reduce the impact, but that is a general measure, not from the advisory.
How to tell if you were hit
Look in access logs for bursts of POST requests to the Telegram webhook path from addresses that are not Telegram's, particularly ones with large bodies and no valid secret header. Watch for memory growth, high CPU or slow responses from the OpenClaw process during such bursts. After the upgrade, those requests show up as fast 401 responses.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
openclaw versions <= 2026.3.12 read and buffered Telegram webhook request bodies before validating x-telegram-bot-api-secret-token. This let unauthenticated callers force up to the configured webhook body limit of pre-auth body I/O and JSON parse work per request.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
<= 2026.3.12 - Fixed version:
2026.3.13
Details
The vulnerable path was the standalone Telegram webhook listener in src/telegram/webhook.ts. In affected releases, the request handler accepted POST requests, called readJsonBodyWithLimit(...), and only then checked the Telegram secret header. Because the secret validation happened after body reading, an unauthenticated caller could make the server spend memory, socket time, and JSON parse work on requests that should have been rejected before any body processing.
This issue is in scope under OpenClaw's trust model because the Telegram webhook endpoint accepts untrusted network traffic and the secret header is the authentication boundary for that ingress path.
Fix
[email protected] validates the Telegram webhook secret before any body I/O. Current code reads the header, rejects invalid requests immediately with 401, and only calls readJsonBodyWithLimit(...) after hasValidTelegramWebhookSecret(...) succeeds.
Regression coverage exists in src/telegram/webhook.test.ts (rejects unauthenticated requests before reading the request body).
Fix Commit(s)
7e49e98f79073b11134beac27fdff547ba5a4a02
Thanks @space08 for reporting.
Credited to space08.
Questions
- Is OpenClaw 2026.3.12 affected by CVE-2026-32980?
Yes. Versions up to and including 2026.3.12 are affected. 2026.3.13 is the fixed version.
- Does the attacker need the Telegram webhook secret?
No. The flaw is that the secret was checked only after the body had been read, so a request without it still cost the server work.
- Can this lead to code execution or data theft?
The advisory describes resource exhaustion only. The CVSS vector shows no confidentiality or integrity impact.
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
