CVE-2026-142215: @libp2p/gossipsub through 17.2.3 Memory Exhaustion via Unbounded Metric Label Cardinality

Published Dec 2, 2026
·
Updated

@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

1 affected component
npm/@libp2p/gossipsub<=17.2.3

Event History

Dec 2, 2026
CVE Published
via MITRE·04:50 PM
Data Sourced
via MITRE·04:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness
Event
via NVD·05:17 PM

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203