User Impersonation Affecting @libp2p/peer-store package, versions >=8.0.0 <12.0.24


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.27% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-LIBP2PPEERSTORE-20044965
  • published22 Sept 2026
  • disclosed17 Sept 2026
  • creditAlleysira

Introduced: 17 Sep 2026

NewCVE-2026-86039  (opens in a new tab)
CWE-290  (opens in a new tab)

How to fix?

Upgrade @libp2p/peer-store to version 12.0.24 or higher.

Overview

@libp2p/peer-store is a Stores information about peers libp2p knows on the network

Affected versions of this package are vulnerable to User Impersonation via consumePeerRecord in peer-store/src/index.ts, where the peer ID derived from the envelope's signing public key is compared against sequence numbers but addresses are stored under the peer ID taken from the record payload. Because the two peer IDs are never checked for equality, an attacker can supply a peer record whose payload peer ID differs from the signing key's peer ID, causing addresses to be written under an arbitrary peer ID and overwriting legitimate address records for that peer.

CVSS Base Scores

version 4.0
version 3.1