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

CVE-2026-41300: OpenClaw: Endpoint persists after trust decline, leaking gateway credentials

mediumCVSS 4.0 6.9GHSA-9f4w-67g7-mqwv

OpenClaw 2026.3.28 and earlier keep a discovered gateway address after the user declines to trust it during remote onboarding. The attacker's address then fills the manual URL prompt, and if the operator accepts it, gateway credentials go to the attacker. Upgrade to openclaw 2026.3.31.

Published Apr 3, 2026 · Updated Apr 20, 2026 · Analysis Oct 30, 2026

What an attacker can do

During remote onboarding, OpenClaw can discover a gateway endpoint on the network and ask whether to trust it. In promptRemoteGatewayConfig (src/commands/onboard-remote.ts), declining did not clear the discovered value held in suggestedUrl. The next step, a manual prompt titled Gateway WebSocket URL, used that value as its initial value. The existing test showed it: the prefill was wss://evil.example:443.

The attacker must be able to advertise a rogue gateway to the machine being onboarded, for example on the same network. They then rely on the operator pressing Enter on the prefilled address. The maintainers rate it medium for that reason: acceptance of the prefill is still required. If the operator does accept it, OpenClaw sends the gateway credentials to the attacker's endpoint. The attacker then holds a credential that lets them reach the real gateway.

The flaw is a control-flow error in the decline branch. The commit shows no other place where the endpoint was stored.

Who is affected

The npm package openclaw at 2026.3.28 and earlier. Version 2026.3.31 is the first stable release with the fix. Only people who run the remote onboarding flow and use network discovery are at risk.

Check your install:

npm ls -g openclaw
openclaw --version

If you onboarded a remote gateway on an affected version and pressed Enter on a prefilled URL after declining a discovered one, check which host that URL pointed to.

openclaw

Ecosystem
npm
Affected
<= 2026.3.28
Fixed in
2026.3.31
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.3.31 or later.

npm install -g [email protected]

The fix, commit 2a754166, adds an else branch in promptRemoteGatewayConfig that resets suggestedUrl to DEFAULT_GATEWAY_URL when trust is declined. The manual prompt now starts at ws://127.0.0.1:18789. The advisory names no workaround; until you upgrade, retype the gateway URL yourself instead of accepting the prefill.

How to tell if you were hit

Check the gateway URL saved in your OpenClaw configuration from any remote onboarding on an affected version. A host you did not choose, or one you declined during the trust prompt, is a red flag. If the URL is not your own gateway, rotate the gateway token or password, and look in the real gateway's logs for logins that came from unfamiliar addresses. Check network logs for outbound WebSocket connections from the onboarding machine to unknown hosts.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Remote onboarding preserves attacker-discovered endpoint after trust decline, routing gateway credentials to it

Current Maintainer Triage

  • Status: narrow
  • Normalized severity: medium
  • Assessment: Real shipped onboarding trust-decline bug because the declined discovered URL survived into the manual prompt, but operator acceptance of that prefill is still required, so medium.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Latest published npm version: 2026.3.31
  • Vulnerable version range: <=2026.3.28
  • Patched versions: >= 2026.3.31
  • First stable tag containing the fix: v2026.3.31

Fix Commit(s)

  • 2a75416634837c21ed05b8c3ed906eb7a7807060 — 2026-03-30T20:03:06+01:00

Release Process Note

  • The fix is already present in released version 2026.3.31.
  • This draft looks ready for final maintainer disposition or publication, not additional code-fix work.

Thanks @zsxsoft for reporting.

Credited to zsxsoft, KeenSecurityLab.

Questions

Is OpenClaw 2026.3.28 affected by CVE-2026-41300?

Yes. The vulnerable range is 2026.3.28 and earlier. The first fixed version is 2026.3.31.

Does the attacker need the user to do anything?

Yes. The operator must accept the prefilled address in the manual prompt. That is why the maintainers rate it medium.

Is it exploited in the wild?

No source I read says so, and the entry has no CISA KEV flag. The EPSS score is about 0.25%.

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