Skip to content
RedCVE

CVE-2026-86039Libp2p Js-libp2p authentication bypass by spoofing

libp2pPublished:

CVSS score

8.2

High

CVSS 3.1 from github.com

Exploit probability (EPSS)

0.27%

0.27% chance of exploitation in the next 30 days, higher than 19.3% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official 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.

Source: NVD · CNA: security-advisories@github.com

How to fix it, step by step

  1. Check whether you're affected

    Find every system running libp2p Js-libp2p and compare its version with the affected versions.

  2. Update to a fixed version

    • Update Js-libp2p to 12.0.24 or later.
  3. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low

Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

Affected products

Affected productsVersions
libp2p Js-libp2p>= 8.0.0, < 12.0.24

Weakness

  • CWE-290 authentication bypass by spoofing
  • CWE-345 insufficient verification of data authenticity

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-86039 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.3% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2026-86039?

CVE-2026-86039 has a CVSS 3.1 base score of 8.2 (high).

Which versions are affected?

Libp2p Js-libp2p (>= 8.0.0, < 12.0.24)

Is there a patch for CVE-2026-86039?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.