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…

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

CVE-2026-49866 is a high-severity vulnerability in the JavaScript libp2p networking stack (js-libp2p) prior to version 16.0.0. The issue arises because the default decoding limits for IHAVE and IWANT message ID arrays were set to Infinity, allowing excessively large control message arrays to be processed synchronously. This can cause the Node.js event loop to be blocked by iterating over roughly 180,000 message IDs in a 4 MB frame, resulting in a denial of service due to resource exhaustion. The vulnerability 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/08/2026, 21:28:38 UTC

Technical Analysis

The vulnerability in js-libp2p versions before 16.0.0 involves the allocation of resources without limits or throttling (CWE-770). Specifically, the defaultDecodeRpcLimits configuration set maxIhaveMessageIDs and maxIwantMessageIDs to Infinity, enabling oversized IHAVE and IWANT control message arrays to be processed synchronously in message/decodeRpc.ts and gossipsub.ts. This leads to blocking of the Node.js event loop by iterating over approximately 180,000 message IDs per 4 MB frame, causing a denial of service condition. The issue is resolved in version 16.0.0 where these limits are presumably enforced.

Potential Impact

The vulnerability allows an attacker to cause a denial of service by sending oversized IHAVE and IWANT control message arrays, which block the Node.js event loop during synchronous processing. This results in service unavailability or degraded performance. There is no impact on confidentiality or integrity according to the CVSS vector.

Mitigation Recommendations

A fix is available in js-libp2p version 16.0.0. Users should upgrade to version 16.0.0 or later to mitigate this vulnerability. No other mitigation guidance is provided or necessary given the availability of the official fix.

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/08/2026, 21:28:38 UTC

Last updated: 07/08/2026, 21:28:38 UTC

Views: 2

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