CVE-2026-49866 PUBLISHED

libp2p: CPU DoS via oversized IHAVE and IWANT control message arrays

Assigner: GitHub_M
Reserved: 01.06.2026 Published: 08.07.2026 Updated: 09.07.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS Score: 7.5

Product Status

Vendor libp2p
Product js-libp2p
Versions
  • Version < 16.0.0 is affected

References

Problem Types

  • CWE-770: Allocation of Resources Without Limits or Throttling CWE