AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-41916: OpenClaw: resolvedAuth closure becomes stale after config reload

mediumCVSS 4.0 5.1GHSA-68x5-xx89-w9mm

OpenClaw, the open-source AI assistant, kept using its old resolved auth state for new gateway connections after a config reload. Auth changes made through a reload may not take effect for connections accepted afterwards. The openclaw npm package up to 2026.4.1 is affected. Upgrade to 2026.4.8.

Published Apr 9, 2026 · Updated Apr 28, 2026 · Analysis Nov 6, 2026

What an attacker can do

The gateway builds a resolvedAuth value from config and captures it in a closure. After a config reload, the closure was not refreshed. Connections accepted after the reload therefore ran under the auth rules from before the reload. The weakness is CWE-613, insufficient session expiration.

In practice this matters when you change gateway auth config and reload it to tighten access. Examples are rotating a token, removing a credential or turning on a stricter mode. The old credential or looser rule could keep working for new connections until the process restarts. The advisory does not give an example or an exploit, and it does not say which auth modes are affected.

The CVSS 4.0 vector shows no confidentiality or integrity impact and only low availability impact (VA:L), with no privileges needed. The advisory is rated moderate. It scopes the issue to OpenClaw as a user-controlled local assistant, not a multi-tenant service. So the exposure is a local or small-team gateway where a revoked credential is expected to stop working after reload.

Who is affected

The openclaw npm package at 2026.4.1 and below. The package data lists everything below 2026.4.8 as vulnerable. It only matters if you reload config while the gateway is running. Check:

npm ls openclaw

openclaw

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

How to fix it

Upgrade openclaw to 2026.4.8 or later.

npm install [email protected]

The advisory names commit d7c3210cd6f5 as the verified fixed tree. It gives no workaround. Until you upgrade, restart the gateway process after any auth config change instead of relying on a reload.

How to tell if you were hit

Compare gateway auth config with what connections actually use. After a reload, test that a credential you removed or changed is rejected by a new connection. Review gateway logs for connections accepted after a reload with credentials that should no longer be valid. The advisory gives no log lines.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

resolvedAuth closure becomes stale after config reload.

After a config reload, newly accepted gateway connections could continue using stale resolved auth state.

OpenClaw is a user-controlled local assistant. This advisory is scoped to the OpenClaw trust model and does not assume a multi-tenant service boundary.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected versions: <= 2026.4.1
  • Patched versions: 2026.4.8

Fix

The issue was fixed on main and is available in the patched npm version listed above. The verified fixed tree is commit d7c3210cd6f5fdfdc1beff4c9541673e814354d5.

Verification

The fix was re-checked against main before publication, including targeted regression tests for the affected security boundary.

Credits

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

Credited to kexinoh.

Questions

What is stale after the reload?

The resolvedAuth closure. New gateway connections kept using the auth state resolved before the reload.

Which version fixes it?

openclaw 2026.4.8. Versions 2026.4.1 and earlier are listed as affected.

Does it need a restart workaround?

The advisory gives no workaround. Restarting the gateway after auth changes avoids relying on the reload, which is our suggestion.

Is there a CVE for it?

No CVE appears in the advisory. It is tracked as GHSA-68x5-xx89-w9mm and rated moderate.

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