CVE-2026-49866: js-libp2p · Unthrottled Resource Allocation
Affects js-libp2pSource CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 16.0.0 soon.
Data as of 20 Nov 2026, 17:35 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 16.0.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 8 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.
What to do
Upgrade js-libp2p to 16.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| libp2pjs-libp2p | Affected
| Fixed in
|
AI-suggested
Upgrade js-libp2p to version 16.0.0 or later, where the issue is fixed by limiting maxIhaveMessageIDs and maxIwantMessageIDs to prevent unbounded resource allocation. No other mitigation is specified. Patch status is confirmed fixed in 16.0.0.
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.
References
- github.com/libp2p/js-libp2p/security/advisories/GHSA-cwc9-cp4j-mcvv (opens in a new tab)
- github.com/libp2p/js-libp2p/pull/3520 (opens in a new tab)
- github.com/libp2p/js-libp2p/commit/773dd80ded24dbd6b19e675c89fd2f3b45f2d899 (opens in a new tab)
- github.com/libp2p/js-libp2p/releases/tag/gossipsub-v16.0.0 (opens in a new tab)