CVE-2026-41339: OpenClaw: Gateway hello snapshots exposed host config and state paths to non-admin clients
OpenClaw before 2026.4.2 sends the host's configPath and stateDir to every client that connects to the Gateway, including clients without admin scope. A low-privilege authenticated client learns the filesystem layout of the machine. Upgrade the openclaw npm package to 2026.4.2.
Published Apr 7, 2026 · Updated May 6, 2026 · Analysis Oct 30, 2026
What an attacker can do
When a client connects to the Gateway, the server answers with a hello-ok snapshot. Before the fix, buildGatewaySnapshot() in src/gateway/server/health-state.ts always put configPath and stateDir into that snapshot. The commit shows that authMode was also gated after the fix. A client holding only a read scope, such as operator.read, received the same values as an admin.
This is an information disclosure (CWE-200), not an authorization bypass. The attacker needs a valid low-privilege login to the Gateway over the network. They get the absolute path of the OpenClaw config file and the state directory, which usually reveals the OS, the user name in the home directory and how the install is laid out.
On its own the leak does not give control. It helps an attacker choose paths for a second flaw, such as a file read or a write primitive, and it fingerprints the host. For teams that give read-only OpenClaw access to many users or integrations, those users learn host details they do not need.
Who is affected
openclaw on npm, version 2026.4.1 and earlier. Check what is installed:
npm ls openclawIf you run it globally, use npm ls -g openclaw. The exposure applies to Gateway deployments where non-admin clients can connect.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.4.1
- Fixed in
- 2026.4.2
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.4.2 or later:
npm install [email protected]The fix, commit 676b748056b5efca6f1255708e9dd9469edf5e2e, builds the snapshot with includeSensitive set only when the client's scopes include the admin scope. Admin clients still see the paths. The advisory lists no workaround besides upgrading.
How to tell if you were hit
Look at which clients connect to your Gateway and what scopes they hold. Any non-admin client on a version up to 2026.4.1 received the paths, so review the access of those accounts. To test a patched install, connect with a read-only client and confirm the hello-ok snapshot has no configPath, stateDir or authMode fields. The sources give no log line for this issue. Beam records agent shell commands and file access, which would show any follow-up use of the leaked paths on the same machine.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Before OpenClaw 2026.4.2, the Gateway connect success snapshot exposed local configPath and stateDir metadata to non-admin clients. Low-privilege authenticated clients could learn host filesystem layout and deployment details that were not needed for their role.
Impact
A non-admin client could recover host-specific filesystem paths and related deployment metadata, aiding host fingerprinting and chained attacks. This was an information-disclosure issue, not a direct authorization bypass.
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)
676b748056b5efca6f1255708e9dd9469edf5e2e— limit connect snapshot metadata to admin-scoped clients
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 @topsec-bunney for reporting.
Credited to topsec-bunney.
Questions
- Which OpenClaw version fixes CVE-2026-41339?
2026.4.2. Versions up to and including 2026.4.1 are affected. The fix limits the connect snapshot's sensitive fields to admin-scoped clients.
- Can an unauthenticated user see the paths?
The advisory says low-privilege authenticated clients. The attacker needs a valid Gateway login, but not admin scope.
- Does this give remote code execution?
No. The advisory calls it information disclosure only. The paths help later attacks but do not give control on their own.
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
