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

CVE-2026-41407: OpenClaw: Shared-secret comparison call sites leaked length information through timing

mediumCVSS 4.0 6.3 · 3.1 3.7GHSA-jj6q-rrrf-h66h

OpenClaw 2026.4.1 and earlier compares several webhook and token secrets with early length-mismatch checks, which can leak the secret's length through response timing. The issue is low severity and no auth bypass is shown. Upgrade the openclaw npm package to 2026.4.2.

Published Apr 7, 2026 · Updated May 6, 2026 · Analysis Oct 30, 2026

What an attacker can do

Several channel extensions check a shared secret on incoming webhooks. Each had its own comparison routine. Most compared bytes with crypto.timingSafeEqual after checking that the lengths matched, and returned early when they did not. A wrong-length guess therefore returned faster than a right-length guess, and a remote caller who measures many responses can find the secret's length.

The commit lists the call sites: BlueBubbles, Feishu, Mattermost interactions, the Telegram webhook secret header, Twilio and the voice-call webhook security, and the Zalo webhook. All now call one helper, safeEqualSecret.

The advisory rates this low: it did not demonstrate an authentication bypass, and the CVSS 3.1 score is 3.7 with high attack complexity. Knowing a secret's length only narrows a brute-force search a little. The practical risk is for webhook endpoints that are open to the internet with short or guessable secrets. Strong random secrets make it a minor concern.

Who is affected

openclaw on npm, version 2026.4.1 and earlier, with any of the listed channel extensions exposed to the network. Check the installed version:

npm ls openclaw

Use npm ls -g openclaw for a global install.

openclaw

Ecosystem
npm
Affected
<= 2026.4.1
Fixed in
2026.4.2
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.4.2 or later:

npm install [email protected]

Commit be10ecef770a4654519869c3641bbb91087c8c7b moves the affected call sites onto the shared safeEqualSecret helper. The BlueBubbles check also now rejects empty tokens. The advisory lists no workaround. Using long random webhook secrets limits the value of a length leak.

How to tell if you were hit

A timing side channel leaves little in logs. Look for bursts of webhook requests with failing authentication from one source against the Telegram, BlueBubbles, Feishu, Mattermost, Twilio or Zalo endpoints, especially with varying secret lengths. Rotate webhook secrets if you see such a pattern. The sources give no log line specific to this flaw.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Before OpenClaw 2026.4.2, several shared-secret comparison call sites still used early length-mismatch checks instead of the shared fixed-length comparison helper. Those paths could leak secret-length information through measurable timing differences.

Impact

The affected paths exposed a low-severity timing side channel on secret comparison. The issue did not by itself demonstrate auth bypass, but it weakened the intended constant-time handling for shared secrets.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected versions: <= 2026.4.1
  • Patched versions: >= 2026.4.2
  • Latest published npm version: 2026.4.1

Fix Commit(s)

  • be10ecef770a4654519869c3641bbb91087c8c7b — reuse the shared secret comparison helper at affected call sites

Release Process Note

The fix is present on main and is staged for OpenClaw 2026.4.2. Publish this advisory after the 2026.4.2 npm release is live.

Thanks @kexinoh of Tencent zhuque Lab (https://github.com/Tencent/AI-Infra-Guard) for reporting.

Credited to kexinoh.

Questions

Does CVE-2026-41407 allow an authentication bypass?

The advisory says it did not demonstrate one. It describes a low-severity timing side channel that leaks the length of a shared secret.

Which version fixes it?

OpenClaw 2026.4.2. Versions up to and including 2026.4.1 are affected.

Which integrations are involved?

The fix touches BlueBubbles, Feishu, Mattermost, Telegram, the voice-call Twilio and webhook security code, and Zalo.

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