libp2p: PeerStore accepts attacker-signed PeerRecords for a victim peer ID and stores certified attacker addresses
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-290.
Summary
libp2p is a JavaScript implementation of the libp2p networking stack. From 8.0.0 until 12.0.24, @libp2p/peer-store in packages/peer-store/src/index.ts uses consumePeerRecord to verify a RecordEnvelope signature but does not require PeerRecord.peerId in the signed payload to equal the signer peer ID derived by RecordEnvelope.openAndCertify. The expectedPeer option checks only the envelope signer, and the gossipsub Peer Exchange path can provide the attacker's own peer ID as expectedPeer. An attacker can therefore sign a record with the attacker's key, place a victim peer ID and attacker-controlled multiaddrs in the payload, and have certified addresses stored for the victim. The poisoned addresses can cause address-book corruption, dial redirection or failure, routing manipulation, and reachability disruption, although the connection upgrade still verifies remote peer identity and prevents a complete identity takeover. The issue is fixed in version 12.0.24.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| libp2p | js-libp2p | 8.0.0 to before 12.0.24 | 12.0.24 | Patch available | CNA |
| — | @libp2p/peer-store (npm) | 8.0.0 to before 12.0.24 | 12.0.24 | Patch available | GHSA-vrf4-mx87-p53w |
- js-libp2p Vendorlibp2p Affected 8.0.0 to before 12.0.24 Fixed in 12.0.24 Patch available CNA
- @libp2p/peer-store (npm) Vendor— Affected 8.0.0 to before 12.0.24 Fixed in 12.0.24 Patch available GHSA-vrf4-mx87-p53w
Remediation
- Fix · CNA js-libp2p (libp2p) Fixed in 12.0.24
- Fix · GHSA-vrf4-mx87-p53w @libp2p/peer-store (npm) Fixed in 12.0.24 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-86039
- 2026-10-03 Alias added: GHSA-vrf4-mx87-p53w
References
Other 5
- https://github.com/libp2p/js-libp2p/security/advisories/GHSA-vrf4-mx87-p53w
- https://github.com/libp2p/js-libp2p/pull/3570
- https://github.com/libp2p/js-libp2p/commit/3bf5d395cbca1488eea6e87cd771e4613b661c30
- https://github.com/libp2p/js-libp2p/releases/tag/peer-store-v12.0.24
- https://github.com/libp2p/js-libp2p
More libp2p vulnerabilities
- TI-2026-60386 libp2p-rendezvous through 0.17.1 Denial of Service via Unbounded Registration TTL in Discovery Responses CVSS 4.0HIGH 8.7
- TI-2026-44102 libp2p-quic: Remote panic via certificate expiry race during QUIC handshake CVSS 4.0HIGH 8.2
- TI-2026-27587 libp2p-rust has unbounded rendezvous DISCOVER cookies enable remote memory exhaustion CVSS 3.1HIGH 8.2
- TI-2026-58864 libp2p: Gossipsub StrictSign accepts attacker-signed messages as a victim RSA peer ID CVSS 3.1HIGH 7.5
- TI-2026-53982 libp2p: Circuit relay v2 server reservation refresh leaks abort listeners and allows remote resource exhaustion CVSS 3.1HIGH 7.5
- TI-2026-51658 py-libp2p: yamux connection DoS via oversized data frame CVSS 3.1HIGH 7.5
Sources
- CVE-2026-86039 · CVE Program
- CVE-2026-86039 · NVD
- FIRST EPSS
- GHSA-vrf4-mx87-p53w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences