Intel

AIKIDO-2026-848662

@libp2p/peer-store is vulnerable to Authentication Bypass by Spoofing

Authentication Bypass by SpoofingGHSA-vrf4-mx87-p53w Published Yesterday

82

High Risk

This Affects:

JS@libp2p/peer-store
8.0.0 - 12.0.23
Fixed in 12.0.24
Are you affected? Scan for Free

TL;DR

consumePeerRecord verifies a PeerRecord envelope signature but does not check that the signer matches the peer id in the payload. A record signed by one peer can therefore store certified multiaddrs under another peer's id, which are preferred when dialing. The fix requires the envelope signer to match the record peer id before storing those addresses.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you ingest signed PeerRecord envelopes from the network, including via gossipsub peer exchange. Nodes that only consume locally generated peer records are not exposed.

Background info

@libp2p/peer-store is vulnerable to Authentication Bypass by Spoofing in versions 8.0.0 - 12.0.23.

How to fix this

Upgrade the @libp2p/peer-store library to the patch version.