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

CVE-2026-41393: OpenClaw: macOS Tailnet DNS Spoofing & Credential Exfiltration

highCVSS 4.0 7.1GHSA-q9w8-cf67-r238

The OpenClaw macOS app, in versions up to 2026.3.28, accepted any Tailscale peer as the DNS authority for wide-area gateway discovery. A peer on the same tailnet can steer the app to a fake gateway and capture operator credentials. Fixed in 2026.3.31.

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

What an attacker can do

To find a gateway over the tailnet, the old WideAreaGatewayDiscovery code probed every tailnet IPv4 peer with dig. It used the first peer that answered a PTR query as the nameserver. A malicious peer only had to answer first, and it could then return PTR records for _openclaw-gw._tcp that point at a gateway it controls.

The operator then sees the fake gateway in the discovery list. If they pick it and connect, the app sends their credentials to the attacker. The maintainers rate it medium because exploitation needs a position on the same tailnet, an endpoint that passes certificate checks, and a user selection of the entry.

It matters most on shared or large tailnets, where many people or devices can act as peers. The CVSS vector is adjacent network, no privileges, and high confidentiality impact only.

Who is affected

The OpenClaw macOS app, from the npm package openclaw versions 2026.3.28 and earlier. Only the macOS wide-area discovery over Tailscale is affected. Check the version:

npm ls openclaw
openclaw --version

The app version is also listed in the About window of the macOS app.

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, the first stable tag with the fix.

npm install -g [email protected]

The fix commit makes discovery trust only Tailscale's MagicDNS resolver at 100.100.100.100. It sends one PTR query for _openclaw-gw._tcp to that resolver and no longer probes peers. A new test shows an attacker peer that answers PTR queries is never queried. The sources list no workaround. Until you upgrade, add gateways by hand instead of using wide-area discovery.

How to tell if you were hit

Check which gateway the macOS app shows in discovery and compare its address with your real gateway. Look at the Tailscale peer list for devices you do not recognise, and for peers answering DNS on port 53. If an operator connected to an unexpected gateway, rotate the operator credentials and tokens they used. Beam records MCP tool calls and shell commands on a machine where an agent runs, but it does not inspect macOS discovery traffic.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

macOS Wide-Area Discovery Accepts Arbitrary Tailnet Peer as DNS Authority and Exfiltrates Operator Credentials

Current Maintainer Triage

  • Status: narrow
  • Normalized severity: medium
  • Assessment: Real shipped macOS discovery steering bug, but exploitation needs same-tailnet position, a CA-trusted endpoint, and user selection, so medium not high.

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)

  • a23c33a681f8c1b22dc793995acc4c5c4b568346 — 2026-03-31T10:04:11+01:00

OpenClaw thanks @nexrin for reporting.

Credited to nexrin, KeenSecurityLab, qclawer.

Questions

Which OpenClaw version fixes the macOS discovery issue?

2026.3.31. Versions up to and including 2026.3.28 are affected. The fix commit is a23c33a.

Who can exploit it?

A device on the same tailnet as the victim. The maintainers also say the attack needs an endpoint that passes certificate checks and the user choosing the fake gateway.

Are Linux or Windows users affected?

The advisory and fix concern the macOS app's wide-area discovery. The sources do not describe other platforms as affected.

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