Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-86039

HIGH 8.2EPSS 12%

libp2p: PeerStore accepts attacker-signed PeerRecords for a victim peer ID and stores certified attacker addresses

Also known as GHSA-vrf4-mx87-p53w

Mitigation

  • Upgrade @libp2p/peer-store to 12.0.24 or later.

Who should check

  • Projects that depend on npm package @libp2p/peer-store (>= 8.0.0, < 12.0.24)
  • Anyone running js-libp2p >= 8.0.0, < 12.0.24

Vulnerability facts

Affected
@libp2p/peer-store >= 8.0.0, < 12.0.24
Fixed in
12.0.24
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: High
  • Availability impact: Low
EPSS
0.27% chance of exploitation in 30 days (percentile 12, 2026-11-26)
CWE
CWE-290, CWE-345
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
npm @libp2p/peer-store>= 8.0.0, < 12.0.2412.0.24osv
js-libp2p>= 8.0.0, < 12.0.24—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-86039. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-86039.md
Affected: @libp2p/peer-store >= 8.0.0, < 12.0.24
Fixed in: 12.0.24

Steps:
1. Search this machine and project for @libp2p/peer-store (npm), js-libp2p: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-86039 being exploited?

There is no confirmed exploitation: CVE-2026-86039 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-86039?

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-86039?

@libp2p/peer-store >= 8.0.0, < 12.0.24.

Is there a fix for CVE-2026-86039?

Yes. Fixed in 12.0.24. Upgrade @libp2p/peer-store to 12.0.24 or later.

How do I check if I'm affected by CVE-2026-86039?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors