JavaScript Network Stack Vulnerability in libp2p by Protocol Labs
CVE-2026-49866
7.5HIGH
What is CVE-2026-49866?
The libp2p networking stack, a JavaScript implementation, contains a significant vulnerability prior to version 16.0.0. Specifically, the default settings for @libp2p/gossipsub's decode RPC limits allow for an unlimited number of oversized IHAVE and IWANT control message arrays. This issue can lead to a synchronously iterated processing of roughly 180,000 message IDs in a single 4 MB frame, which may block the Node.js event loop, severely impacting the application's performance. Users are advised to upgrade to version 16.0.0 or later to mitigate this issue.
Affected Version(s)
js-libp2p < 16.0.0
