Skip to content
RedCVE

CVE-2026-86038Libp2p Js-libp2p insufficient verification of data authenticity

libp2pPublished:

CVSS score

7.5

High

CVSS 3.1 from github.com

Exploit probability (EPSS)

0.19%

0.19% chance of exploitation in the next 30 days, higher than 8.87% 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 15.0.0 until 16.0.5, @libp2p/gossipsub uses the default StrictSign policy in packages/gossipsub/src/utils/buildRawMessage.ts, where validateToRawMessage verifies a signature with attacker-controlled msg.key but skips binding that key to msg.from when the claimed author is an RSA peer ID that does not inline a public key. An unauthenticated attacker can place a victim RSA peer ID in msg.from, sign the message with the attacker's private key, and supply the attacker's public key in msg.key, causing the message to be accepted and propagated as authored by the victim. Applications that trust message.from for validators, authorization, accounting, moderation, reputation, or audit logging can process attacker-controlled data under false origin attribution. The issue is fixed in version 16.0.5.

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 16.0.5 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
None

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:N

Affected products

Affected productsVersions
libp2p Js-libp2p>= 15.0.0, < 16.0.5

Weakness

  • CWE-345 insufficient verification of data authenticity
  • CWE-347 improper verification of cryptographic signature

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-86038 being exploited?

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

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

CVE-2026-86038 has a CVSS 3.1 base score of 7.5 (high).

Which versions are affected?

Libp2p Js-libp2p (>= 15.0.0, < 16.0.5)

Is there a patch for CVE-2026-86038?

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.