CVE-2026-142215: @libp2p/gossipsub through 17.2.3 Memory Exhaustion via Unbounded Metric Label Cardinality
@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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using @libp2p/gossipsub through 17.2.3 are exposed when metrics are enabled and the node can receive messages from remote peers.
What does an attacker need to exploit it?
An attacker only needs network access as a remote peer. They can send messages with arbitrarily many distinct topic strings; no privileges or user interaction are required.
Why can messages consume memory even if they are not accepted?
Metric label time series are created before message validation. The created labelled series are never removed, so distinct topic strings can continually grow the Node.js process memory footprint.