Skip to content
RedCVE

CVE-2026-86040Libp2p Js-libp2p uncontrolled resource consumption

libp2pPublished:

CVSS score

7.5

High

CVSS 3.1 from github.com

Exploit probability (EPSS)

0.67%

0.67% chance of exploitation in the next 30 days, higher than 52.9% 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. Prior to 11.0.26, @libp2p/floodsub accepts unauthenticated RPC frames on /floodsub/1.0.0 through PeerStreams.attachInboundStream in packages/floodsub/src/peer-streams.ts without protobuf element limits, then processRpc and processRpcSubOpt in packages/floodsub/src/floodsub.ts synchronously process the subscriptions array without a per-frame cap. A single bounded-size frame can decode into millions of empty subscription entries that block the event loop, while hundreds of thousands of unique-topic SUBSCRIBE entries allocate PeerSet objects in this.topics that are not removed after peer removal or stop. Empty entries cause CPU exhaustion but do not grow this.topics; persistent memory growth requires unique topics. The subscription path bypasses message signature validation and the message-only processing queue, allowing a remote peer to cause sustained CPU denial of service, memory exhaustion, out-of-memory termination, and node unavailability. The issue is fixed in version 11.0.26.

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, libp2p Floodsub and compare its version with the affected versions.

  2. Update to a fixed version

    • Update Js-libp2p, Floodsub to 11.0.26 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
None
Availability
High

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:N/A:H

Affected products

Affected productsVersions
libp2p Js-libp2p< 11.0.26
libp2p Floodsub< 11.0.26

Weakness

  • CWE-400 uncontrolled resource consumption
  • CWE-401 memory leak
  • CWE-770 allocation of resources without limits

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-86040 being exploited?

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

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

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

Which versions are affected?

Libp2p Js-libp2p (< 11.0.26), Libp2p Floodsub (< 11.0.26)

Is there a patch for CVE-2026-86040?

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.