The mesh feature legitimately uses paired-peer tokens, but default LAN discovery can overwrite a paired peer’s destination without checking its pinned identity. A later mesh request sends the token to that unchecked address, making this a credential-routing vulnerability; the source does not establish malicious intent or an unrelated collector, so warn rather than block.
Static reason
No blocking static signals were detected.; previous stored version diff introduced dangerous source
Trigger
Plugin setup starts Bonjour discovery by default. If a LAN host advertises the node ID of an already paired peer, a subsequent mesh_send to that peer or a federated broadcast can send the token to the advertised address.
Impact
A LAN attacker able to spoof a paired peer’s node ID and provide an address can capture that peer’s token and use it to authenticate to the mesh service.
Mechanism
The discovery callback upserts peer data by node ID and overwrites addresses without validating the advertisement against the pinned public key. The client then sends the paired token as a Bearer header over HTTP; the receiving code treats a known paired token as sufficient authentication.
Evidence
dist/plugin-v2.jsdist/lib/peers.jsdist/lib/client.js