AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-27003: OpenClaw: Telegram bot token exposure via logs

mediumCVSS 4.0 6.9GHSA-chf7-jq6g-qrwv

OpenClaw before 2026.2.15 wrote Telegram bot tokens into error messages and stack traces without redaction. Anyone who can read those logs, crash reports, CI output or support bundles can take over the bot's Bot API access. Upgrade the openclaw npm package to 2026.2.15 and rotate any token that may have leaked.

Published Feb 18, 2026 · Updated Feb 20, 2026 · Analysis Nov 24, 2026

What an attacker can do

The Telegram Bot API puts the bot token in the request path, in the form api.telegram.org/bot followed by the token. When a request failed, the error text or stack trace carried that URL. OpenClaw logged these strings as they were, so the token landed in log files, crash reports, CI output and support bundles (CWE-522).

The flaw is not remotely triggerable by itself. The attacker needs to read a place where the logs end up. That could be a shared log system, a public CI job, a bug report that a user pasted, or a support bundle sent to a third party. The vector is local with no user interaction.

A leaked token lets the attacker impersonate the bot. They can read the updates the bot receives, send messages as it, and use any Telegram access the bot has. For an AI assistant wired to Telegram, that can mean reading private chats and issuing messages that the assistant's users trust. The risk is confidentiality of the token, not code execution.

Who is affected

Affected: the npm package openclaw, versions before 2026.2.15 (the advisory writes it as 2026.2.14 and earlier). Version 2026.2.15 is patched. You are exposed if you use the Telegram channel and your logs or crash reports are stored or shared.

Check your version:

npm ls openclaw
openclaw --version

Then search stored logs for the Telegram API host followed by the bot path prefix to see whether a token was written.

openclaw

Ecosystem
npm
Affected
< 2026.2.15
Fixed in
2026.2.15
Check
npm ls openclaw

How to fix it

Upgrade openclaw to 2026.2.15 or later:

npm install -g openclaw@latest

The fix, commit cf69907, runs formatErrorMessage and formatUncaughtError output through the redaction code and adds a pattern for Telegram Bot API URLs. The advisory also says to rotate the Telegram bot token if it may have been exposed. Rotating in BotFather invalidates the old token. Also delete or scrub old logs and bundles that contain it.

How to tell if you were hit

Search logs, CI output, crash reports and support bundles for the Telegram API host followed by a path starting with bot and a long token. Any hit means that token is exposed. Check who could read those files.

On Telegram's side, look for unexpected messages sent by the bot, new webhook settings or updates read by other clients. Rotate the token first, then investigate. If you run Beam beside agents, its records of agent shell commands and file access can show whether a log or support bundle was read or copied.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Vulnerability

Telegram bot tokens can appear in error messages and stack traces (for example, when request URLs include https://api.telegram.org/bot<token>/...). OpenClaw previously logged these strings without redaction, which could leak the bot token into logs, crash reports, CI output, or support bundles.

Impact

Disclosure of a Telegram bot token allows an attacker to impersonate the bot and take over Bot API access.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected: <= 2026.2.14
  • Fixed: >= 2026.2.15 (next release)

Mitigation

  • Upgrade to openclaw >= 2026.2.15 when released.
  • Rotate the Telegram bot token if it may have been exposed.

Fix Commit(s)

  • cf6990701b258bb9cc4ac7f6c7bdf05016e7f6e46

Thanks @aether-ai-agent for reporting.

Credited to aether-ai-agent.

Questions

Which OpenClaw version fixes CVE-2026-27003?

2026.2.15. Earlier versions, up to 2026.2.14, are affected. The fix is commit cf69907.

Do I need to rotate my Telegram bot token?

Yes, if it may have appeared in a log, crash report, CI output or support bundle. The advisory says to rotate it. Upgrading stops new leaks but does not remove tokens already written.

Can an attacker exploit this remotely?

Not directly. The attacker must be able to read the logs or bundles where the token was written. The CVSS vector is local, with no privileges and no user interaction.

Is CVE-2026-27003 exploited in the wild?

The sources do not say so. The entry has no CISA catalog data, and the EPSS score is about 0.17 percent.

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