CVE-2026-49866

High

Description

libp2p is a JavaScript Implementation of libp2p networking stack. Prior to 16.0.0, @libp2p/gossipsub defaultDecodeRpcLimits set maxIhaveMessageIDs and maxIwantMessageIDs to Infinity, allowing oversized IHAVE and IWANT control message arrays in message/decodeRpc.ts and gossipsub.ts to synchronously iterate roughly 180,000 message IDs per 4 MB frame and block the Node.js event loop. This issue is fixed in version 16.0.0.

SeverityHigh
CVSS7.5
Exploit probability—
Product@libp2p/gossipsub
PublishedJul 8, 2026
First seenJul 8, 2026

How to fix

Update
  • @libp2p/gossipsub16.0.0 or later

Affected products

ProductAffected versionsFixed in
@libp2p/gossipsubnpmv < 16.0.016.0.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.