CVE-2026-119793
HighCVSS 7.5Exploitation Probability (EPSS)
Elevated risk51th percentile - higher than 51% of all known CVEs
Summary
In @libp2p/gossipsub prior to 17.0.0, the default configuration allows a connected remote peer to submit unsigned subscription RPC metadata for arbitrarily many distinct topic strings. A single peer can grow the topics map and committed heap toward out-of-memory conditions, and disconnecting causes removePeer to scan all accumulated topic entries.
Risk Assessment
A malicious or faulty peer can cause memory exhaustion and crash of a libp2p node, resulting in denial of service. The issue affects nodes using the default gossipsub configuration.
Recommendation
Upgrade @libp2p/gossipsub to version 17.0.0 or later.
Other vulnerabilities in @libp2p/gossipsub
See all- CVE-2026-142215Medium
@libp2p/gossipsub through 17.2.3 contains an uncontrolled resource consumption vulnerability that allows remote peers to grow the metrics registry by sending messages with arbitrary topics when metrics are enabled. Attackers can send messages with unbounded distinct topic strings, creating never-removed labelled time series before validation, to exhaust Node.js process memory.
- CVE-2026-142214Low
@libp2p/gossipsub through 17.2.3 contains a prototype pollution vulnerability in PeerScore that allows remote gossipsub peers to modify Object.prototype by sending messages on the __proto__ topic. Attackers can send invalid or valid messages on that topic to set inherited invalidMessageDeliveries or firstMessageDeliveries properties to NaN across the victim Node.js process.
- CVE-2026-86038High
libp2p is a JavaScript implementation of the libp2p networking stack. From 15.0.0 until 16.0.5, @libp2p/gossipsub uses the default StrictSign policy in packages/gossipsub/src/utils/buildRawMessage.ts, where validateToRawMessage verifies a signature with attacker-controlled msg.key but skips binding that key to msg.from when the claimed author is an RSA peer ID that does not inline a public key. An unauthenticated attacker can place a victim RSA peer ID in msg.from, sign the message with the attacker's private key, and supply the attacker's public key in msg.key, causing the message to be accepted and propagated as authored by the victim. Applications that trust message.from for validators, authorization, accounting, moderation, reputation, or audit logging can process attacker-controlled data under false origin attribution. The issue is fixed in version 16.0.5.
- CVE-2026-46679High
libp2p (JavaScript Implementation) prior to version 15.0.23 has a vulnerability in @libp2p/gossipsub that allows a single unauthenticated peer to exhaust the Node.js heap of a gossipsub node with default options.
Original NVD description (English source)
libp2p is a JavaScript implementation of the libp2p networking stack. Prior to 17.0.0, the @libp2p/gossipsub default configuration allows a connected remote peer to submit unsigned subscription RPC metadata for arbitrarily many distinct topic strings. handleReceivedSubscription in packages/gossipsub/src/gossipsub.ts creates a persistent topics-map entry for each accepted topic, while allowedTopics is unset by default, decodeRpc maxSubscriptions limits only one RPC rather than aggregate topic bytes, and peer scoring has no subscription-volume penalty. A single peer can therefore grow the topics map and committed heap toward out-of-memory conditions, and disconnecting additionally causes removePeer to scan all accumulated topic entries. This issue is fixed in version 17.0.0.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

