CVE-2026-142215
MediumCVSS 5.9Exploitation Probability (EPSS)
Elevated risk55th percentile - higher than 55% of all known CVEs
Summary
@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.
Risk Assessment
An attacker can cause memory exhaustion and crash the Node.js process, resulting in denial of service for applications using gossipsub. This can disrupt peer-to-peer network communication and impact system availability.
Recommendation
Update @libp2p/gossipsub to a version newer than 17.2.3 if available, or disable metrics if not needed. Consider implementing limits on the number of unique topics and monitoring memory usage.
Other vulnerabilities in @libp2p/gossipsub
See all- 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-119793High
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.
- 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/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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

