CVE-2026-40045: OpenClaw: Android accepted cleartext remote gateway endpoints and sent stored credentials over ws://
Before OpenClaw 2026.4.2, the Android app accepted non-loopback cleartext `ws://` gateway endpoints and sent stored gateway credentials over them. A forged discovery result or a crafted setup code could steer the app to an attacker's endpoint and leak the credentials in plaintext. Fixed in 2026.4.2, which requires TLS for remote endpoints.
Published Apr 7, 2026 · Updated Apr 24, 2026 · Analysis Oct 30, 2026
What an attacker can do
The Android gateway client connects to an OpenClaw gateway whose address comes from discovery beacons on the local network or from a scanned setup code. Before the fix it did not insist on TLS for remote hosts: a ws:// endpoint that was not loopback was accepted, and the client authenticated by sending the stored gateway credentials over that unencrypted connection.
An attacker therefore needs one of two things: to be on the same network and forge a discovery beacon (the CVSS 3.1 vector is adjacent network), or to get the user to scan a crafted setup code. The user must act, by following the discovery result or scanning the code. The attacker then runs a listener at the cleartext endpoint and reads the credentials as they arrive. Anyone on the network path could also read them.
With those credentials the attacker can connect to the user's OpenClaw gateway as that user. The maintainers class this as a transport-security bug (CWE-319) with a medium severity. The sources do not say which actions the credentials permit.
Who is affected
The Android client in openclaw up to and including 2026.4.1, the latest npm version when the advisory was written. This applies to anyone who pairs the Android app with a gateway through discovery or setup codes.
npm ls -g openclaw
openclaw --versionCheck the version of the Android app as well in its About screen, since the advisory lists the npm package version.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.4.1
- Fixed in
- 2026.4.2
- Check
npm ls openclaw
How to fix it
Upgrade to 2026.4.2 or later.
npm install -g openclaw@latestThe fix is commit a941a4f, which requires TLS for remote Android gateway endpoints. Cleartext is no longer accepted for non-loopback hosts. No workaround is given. Until you upgrade, do not accept discovered gateways you did not set up, and do not scan setup codes from unknown sources. If you may have connected to an unknown endpoint, rotate the gateway credentials.
How to tell if you were hit
Check the gateway endpoints saved on the Android device for ws:// addresses that are not loopback or not yours. Review gateway logs for connections from addresses that do not match your devices, or for sessions started with credentials soon after the app joined a new network. On the network, look for forged discovery beacons from hosts other than your gateway.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Before OpenClaw 2026.4.2, Android accepted non-loopback cleartext ws:// gateway endpoints and would send stored gateway credentials over that connection. Discovery beacons or setup codes could therefore steer the client onto a cleartext remote endpoint.
Impact
A user who followed a forged discovery result or scanned a crafted setup code could disclose stored gateway credentials to an attacker-controlled endpoint in plaintext. This was a transport-security bug in the Android gateway client.
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)
a941a4fef9bc43b2973c92d0dcff5b8a426210c5— require TLS for remote Android gateway endpoints
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 @zsxsoft for reporting.
Credited to zsxsoft, KeenSecurityLab.
Questions
- Which OpenClaw version fixes CVE-2026-40045?
2026.4.2. Versions up to 2026.4.1 are affected.
- What does the attacker need?
Either a position on the same network to forge discovery beacons, or a way to get the user to scan a crafted setup code. The user must interact.
- What leaks?
The stored gateway credentials, sent in plaintext to the attacker's endpoint.
- Is it exploited in the wild?
No source says so. The EPSS score is 0.0018.
References
Read for this analysis:
- https://github.com/openclaw/openclaw/commit/a941a4fef9bc43b2973c92d0dcff5b8a426210c5
- https://nvd.nist.gov/vuln/detail/CVE-2026-40045
- https://www.vulncheck.com/advisories/openclaw-cleartext-credential-transmission-via-unencrypted-websocket-gateway-endpoints
- https://github.com/advisories/GHSA-83f3-hh45-vfw9
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
