Skip to main content
← All vulnerabilities
CVE-2026-49866GHSA-CWC9-CP4J-MCVV

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 16.0.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • libp2p js-libp2p

    fixed in 16.0.0

  • @libp2p/gossipsubnpm

    fixed in 16.0.0

References 4

GitHub · libp2p/js-libp2p