CVE-2026-35659: OpenClaw: Bonjour/DNS-SD TXT metadata steers CLI routing after failed service resolution
OpenClaw before 2026.3.22 lets Bonjour and DNS-SD TXT metadata steer CLI gateway routing even when service resolution failed. A host on the same local network can influence which target the CLI picks. The flaw is medium severity. Upgrade the npm package `openclaw` to 2026.3.22 or later.
Published Mar 26, 2026 · Updated Apr 10, 2026 · Analysis Oct 31, 2026
What an attacker can do
OpenClaw's CLI discovers gateways over Bonjour and DNS-SD. In src/infra/bonjour-discovery.ts, when an advertised service did not resolve to a concrete endpoint, the code still fell back to the host and port hints published in its TXT record. Those hints are unauthenticated data from the network (CWE-345, CWE-642). The CLI then used them to choose its target.
An attacker needs to be on the same network segment and must advertise a crafted service. The user has to take an action, such as running a discovery or connect command. The CVSS vector rates the impact as low for confidentiality and integrity. The advisory does not say which targets the attacker can reach, so treat it as a way to point the CLI at an endpoint the user did not choose, for example one the attacker controls.
The fix makes discovery return only concrete resolved endpoints, and src/cli/gateway-cli/discover.ts now uses only that fail-closed path.
Who is affected
The npm package openclaw at versions below 2026.3.22. Check the installed version with:
npm ls openclawOnly installs that use Bonjour or DNS-SD gateway discovery on shared or untrusted local networks are realistically exposed.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.3.22
- Fixed in
- 2026.3.22
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.22 or later:
npm install -g openclaw@latestThe fix commit is deecf68b59a9b7eea978e40fd3c2fe543087b569, and it remains in later releases such as 2026.3.23-2. The advisory lists no workaround. Until you upgrade, avoid discovery on untrusted networks and pass the gateway address explicitly.
How to tell if you were hit
The advisory gives no log indicators. Review which gateway host and port the CLI connected to after a discovery run, and compare it with your known gateways. Check the local network for unexpected _openclaw-style Bonjour advertisements, using a tool such as dns-sd -B or avahi-browse -a.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Bonjour and DNS-SD TXT metadata could still steer CLI routing even when actual service resolution failed, allowing unresolved hints to influence the chosen target.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected: < 2026.3.22
- Fixed: >= 2026.3.22
- Latest released tag checked:
v2026.3.23-2(630f1479c44f78484dfa21bb407cbe6f171dac87) - Latest published npm version checked:
2026.3.23-2
Fix Commit(s)
deecf68b59a9b7eea978e40fd3c2fe543087b569
Release Status
The fix shipped in v2026.3.22 and remains present in v2026.3.23 and v2026.3.23-2.
Code-Level Confirmation
- src/infra/bonjour-discovery.ts now resolves and returns only concrete endpoints instead of falling back to unresolved TXT host and port hints.
- src/cli/gateway-cli/discover.ts consumes only the fail-closed resolved endpoint path.
OpenClaw thanks @nexrin for reporting.
Credited to nexrin, KeenSecurityLab, qclawer.
Questions
- Does the attacker need to be on my network?
Yes. The CVSS vector is adjacent network, so the attacker must be on the same local segment, and a user action is required.
- Which version fixes CVE-2026-35659?
OpenClaw 2026.3.22. The advisory says the fix is also in v2026.3.23 and v2026.3.23-2.
- What changed in the code?
Discovery in
bonjour-discovery.tsnow returns only concrete resolved endpoints and no longer falls back to unresolved TXT host and port hints.
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
