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

CVE-2026-28475: OpenClaw: Config writes could persist resolved ${VAR} secrets to disk

mediumCVSS 4.0 6.9 · 3.1 4.8GHSA-47q7-97xp-m272

OpenClaw compared the webhook hook token with an ordinary string comparison, so a remote attacker could in theory recover it from response timing over many requests. Versions below 2026.2.13 are affected. The advisory title mentions config writes, but its text describes this timing flaw.

Published Mar 2, 2026 · Updated Mar 6, 2026 · Analysis Oct 31, 2026

What an attacker can do

The hooks endpoint checked the supplied token with a regular string comparison. Such a comparison returns as soon as the first differing character is found, so response time leaks how many leading characters were right. With enough requests an attacker could infer the token one character at a time (CWE-208).

The advisory is frank about the limits. The attack usually requires the hooks endpoint to be exposed to an untrusted network and a large number of requests, and real-world latency and jitter make reliable measurement difficult. No account is needed. If it works, the attacker holds the hook token and can call the hooks endpoint as an authorised sender, which can feed content into the agent. The scores are low to medium for that reason: high attack complexity under CVSS 3.1, low confidentiality and integrity impact.

Who is affected

The openclaw npm package below 2026.2.13 that exposes the hooks endpoint. The advisory text says 2026.2.12 while the package data lists 2026.2.13 as the patched version, so use 2026.2.13 or later. Instances with hooks bound to loopback only have little exposure.

npm ls -g openclaw
openclaw --version

openclaw

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

How to fix it

Upgrade to openclaw 2026.2.13.

npm install -g [email protected]

The fix commit adds a constant-time helper, safeEqualSecret, used for the hook token, the gateway token and password, and device token checks. It also throttles repeated hook auth failures: after 20 failures within 60 seconds from one client address, the endpoint returns 429 with a Retry-After header.

If you cannot upgrade at once, the advisory says to restrict network access to the hooks endpoint. Rotate the hooks token after updating, since an earlier probe may have leaked it.

How to tell if you were hit

Look in access logs for a large number of failed requests to the hooks endpoint from a single address, with similar requests and tiny differences in token prefixes. On a patched version the same pattern yields 429 responses. A burst of failures followed by a success from the same client suggests the token was guessed. Rotating the hooks token ends any such access.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

OpenClaw hooks previously compared the provided hook token using a regular string comparison. Because this comparison is not constant-time, an attacker with network access to the hooks endpoint could potentially use timing measurements across many requests to gradually infer the token.

In practice, this typically requires hooks to be exposed to an untrusted network and a large number of requests; real-world latency and jitter can make reliable measurement difficult.

Affected Packages / Versions

  • openclaw (npm): < 2026.2.12

Patched Versions

  • openclaw (npm): >= 2026.2.12

Mitigations

  • Upgrade to openclaw >= 2026.2.12.
  • If users cannot upgrade immediately: restrict network access to the hooks endpoint and rotate the hooks token after updating.

Fix Commit(s)

  • 113ebfd6a23c4beb8a575d48f7482593254506ec

OpenClaw thanks @akhmittra for reporting.

Credited to Abeyron.

Questions

Why does the title mention config writes?

The advisory's title says config writes could persist resolved ${VAR} secrets, but its description and fix commit cover a timing attack on the hook token comparison. This analysis follows the description and fix.

Is the timing attack practical?

The advisory says it usually needs an untrusted network and many requests, and that latency and jitter make measurement unreliable. Treat it as low likelihood but cheap to fix.

Which version fixes CVE-2026-28475?

2026.2.13 per the package data. The advisory body says 2026.2.12, so any release at or above 2026.2.13 covers both.

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