CVE-2026-49866
Deferred Deferred - Pending Action

Memory Exhaustion in libp2p Due to Unlimited Message IDs

Vulnerability report for CVE-2026-49866, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-08

Last updated on: 2026-07-09

Assigner: GitHub, Inc.

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-08
Last Modified
2026-07-09
Generated
2026-07-11
AI Q&A
2026-07-09
EPSS Evaluated
2026-07-09
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
libp2p libp2p 16.0.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-770 The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Compliance Impact

The vulnerability in libp2p prior to version 16.0.0 allows oversized IHAVE and IWANT control message arrays to block the Node.js event loop, causing a denial of service (availability impact).

Since the impact is on availability only and does not affect confidentiality or integrity, the vulnerability could potentially affect compliance with standards and regulations that require high availability of systems, such as HIPAA and GDPR.

However, there is no direct information provided about data breaches or exposure of personal data, so the effect on compliance with data protection requirements (like confidentiality under GDPR or HIPAA) is not indicated.

Mitigation Strategies

To mitigate this vulnerability, upgrade the libp2p package to version 16.0.0 or later, where the issue with oversized IHAVE and IWANT control message arrays causing Node.js event loop blocking has been fixed.

Executive Summary

This vulnerability exists in the libp2p JavaScript networking stack prior to version 16.0.0. The defaultDecodeRpcLimits configuration in @libp2p/gossipsub set the maximum number of IHAVE and IWANT message IDs to Infinity. This allowed attackers to send oversized IHAVE and IWANT control message arrays, which caused the system to synchronously iterate over roughly 180,000 message IDs per 4 MB frame. This iteration blocks the Node.js event loop, leading to a denial of service.

Impact Analysis

The vulnerability can cause a denial of service (DoS) by blocking the Node.js event loop. When oversized IHAVE and IWANT message arrays are processed, the event loop is synchronously blocked, which can halt the application's ability to handle other tasks or requests. This can lead to application unavailability or degraded performance.

Detection Guidance

This vulnerability can be detected by monitoring for unusually large IHAVE and IWANT control messages in the libp2p Gossipsub traffic, especially those containing oversized arrays of message IDs (around 180,000 IDs per 4MB frame). Detection involves identifying high CPU usage or blocked Node.js event loops caused by processing these large control messages.

Specifically, you should look for signs such as event loop blocking for durations longer than the heartbeat interval (e.g., blocking for ~1500ms within a 1000ms heartbeat) and sustained high event loop utilization (above 80%) due to IWANT messages.

While no explicit commands are provided in the resources, you can use Node.js profiling tools or system monitoring commands to detect symptoms:

  • Use Node.js built-in diagnostics like `node --inspect` or `clinic doctor` to profile event loop delays.
  • Monitor CPU usage and event loop lag with tools such as `top`, `htop`, or `pidstat` on the host system.
  • Capture and analyze network traffic to identify large Gossipsub IHAVE/IWANT messages, for example using `tcpdump` or `wireshark` filtering on libp2p ports.
  • Log and inspect inbound control messages in the application if logging is enabled, looking for message arrays exceeding normal sizes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-49866. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart