Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 63%

CVE-2026-49866: CWE-770: Allocation of Resources Without Limits or Throttling in libp2p js-libp2p

0
High
VulnerabilityCVE-2026-49866cvecve-2026-49866cwe-770
Published: 07/08/2026 (07/08/2026, 20:47:09 UTC)
Source: CVE Database V5
Vendor/Project: libp2p
Product: js-libp2p

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.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

Affected versions
<16.0.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/16/2026, 10:04:24 UTC

Technical Analysis

CVE-2026-49866 affects the js-libp2p JavaScript implementation of the libp2p networking stack. Before version 16.0.0, the defaultDecodeRpcLimits configuration set maxIhaveMessageIDs and maxIwantMessageIDs to Infinity. This allowed attackers to send oversized IHAVE and IWANT control message arrays, causing synchronous iteration over approximately 180,000 message IDs per 4 MB frame in message/decodeRpc.ts and gossipsub.ts. This synchronous processing blocks the Node.js event loop, resulting in a denial of service condition. The vulnerability is addressed by limiting these parameters in version 16.0.0.

Potential Impact

The vulnerability can cause a denial of service by blocking the Node.js event loop when processing large IHAVE and IWANT control message arrays. This impacts availability but does not affect confidentiality or integrity. There are no known exploits in the wild at this time.

Mitigation Recommendations

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-01T22:03:19.641Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a4ebdf5c9d9e3dbe3bf8afa

Added to database: 07/08/2026, 21:15:33 UTC

Last enriched: 07/16/2026, 10:04:24 UTC

Last updated: 08/22/2026, 10:52:09 UTC

Views: 109

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses