CVE-2026-45005: OpenClaw's Webhooks SecretRef route secret remains valid after rotation/reload
OpenClaw before 2026.4.23 keeps accepting an old webhook route secret after you rotate it. The webhooks extension cached the resolved SecretRef value, so `openclaw secrets reload` did not revoke the old secret until the gateway or plugin restarted. Upgrade to openclaw 2026.4.23.
Published May 5, 2026 · Updated May 19, 2026 · Analysis Oct 28, 2026
What an attacker can do
OpenClaw webhook routes can take their secret from a SecretRef, a pointer to a secret store or environment value. In extensions/webhooks/src/http.ts, createTaskFlowWebhookRequestHandler cached the resolved value per route in a secretByTarget WeakMap. The first request resolved the secret, and every later request reused that cached promise.
An operator who rotates the underlying secret and runs openclaw secrets reload expects the old value to stop working. Before the fix it kept working, because the cache was never cleared. Only a restart of the plugin or gateway dropped it.
The attacker has to hold a previously valid route secret already, for example from a leak that prompted the rotation in the first place. With it, they can keep calling the webhook and invoke the configured task flow after the operator believes access is closed. The CVSS vector reflects this: high privileges are listed, and the impact is mostly integrity. The flaw does not give access to anyone who never held a valid secret. Its danger is that a rotation after an incident silently fails.
Who is affected
The npm package openclaw in versions before 2026.4.23, on deployments that use the webhooks extension with SecretRef-backed route secrets. Routes with a plain string secret are not cached. Check the version:
npm ls -g openclawopenclaw
- Ecosystem
- npm
- Affected
- < 2026.4.23
- Fixed in
- 2026.4.23
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.4.23 or later:
npm install -g openclaw@latestThe fix commit 36c4a37 removes the secretByTarget cache and makes resolveTargetSecret resolve the SecretRef on every request. After openclaw secrets reload, the old secret gets a 401 and the new one works, with no restart. If you rotated webhook secrets on an affected version, restart the gateway or plugin to be sure the old value is gone, since the advisory says a restart clears it.
How to tell if you were hit
If you rotated a webhook route secret on an affected version, check webhook access logs for authenticated requests that came after the rotation and reload time, particularly from addresses that should not hold the secret. Look for task flow runs triggered by the webhook at unexpected times. After upgrading, a request using the old secret should return 401.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
OpenClaw webhooks allowed route secrets to be backed by SecretRef values, but cached the resolved secret for a route. After an operator rotated the underlying secret and ran openclaw secrets reload, the previous resolved webhook secret could remain valid until the plugin or gateway restarted.
Impact
An attacker who already had a previously valid webhook route secret could continue authenticating webhook requests after the operator rotated the secret and reloaded secrets. This weakened credential rotation for webhook routes and could allow continued invocation of the configured webhook task flow until restart.
Affected Packages / Versions
- Package:
openclawon npm - Affected: versions before
2026.4.23 - Fixed:
2026.4.23 - Latest stable verified fixed:
[email protected], tagv2026.4.23
Fix
Webhook route authentication now resolves SecretRef-backed route secrets on each request. A rotated secret becomes effective after openclaw secrets reload without requiring a gateway or plugin restart, and the old secret is rejected.
Fix Commit(s)
36c4a372a0ad5dca8bfc0d93f7aab9c2f2de66fa(fix(webhooks): reload route secrets per request)
Severity
Severity remains medium. The attack requires possession of a previously valid route secret, but the stale credential can continue to authorize webhook actions after rotation.
Credited to feynman-hou.
Questions
- Is OpenClaw 2026.4.22 affected by CVE-2026-45005?
Yes. Versions before 2026.4.23 are affected. The fixed version is 2026.4.23.
- Does the old secret work forever?
No. It works until the plugin or gateway restarts, according to the advisory. The cache only lasts that long.
- Can someone exploit this without a valid secret?
No. The attacker must already hold a secret that was valid before rotation. The flaw only keeps it alive after you revoke it.
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
