Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › Vulnerabilities › libp2p

High 8.2 2 CVEs Analysis

libp2p gossipsub flaws let remote peers exhaust Node.js memory or pollute object prototypes

NVD published two flaws in @libp2p/gossipsub through 17.2.3 on 2026-12-02. The higher-severity issue lets remote peers grow the metrics registry until process memory runs out when metrics are enabled, and the other lets peers modify Object.prototype via a special topic.

What to look into

  • 2 vulnerabilities in libp2p @libp2p/gossipsub: 1 high, 1 medium (CVSS up to 8.2).
  • None of them is known to be exploited yet.
  • Start with CVE-2026-142215 (8.2 high): @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 metri… An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
  • 2 of 2 can be attacked over the network without logging in, 2 of them without anyone clicking anything.
  • Kinds of flaws: Allocation of Resources Without Limits or Throttling; Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
JavaScriptVulnerabilitiesWeb

Key points

  • CVE-2026-142215 (HIGH, CVSS 8.2): remote topic spam can grow the metrics registry until Node.js memory is exhausted when metrics are enabled.
  • CVE-2026-142214 (MEDIUM, CVSS 6.3): messages on a topic named proto can pollute Object.prototype in PeerScore.
  • Both flaws affect @libp2p/gossipsub through 17.2.3.
  • The records name no fixed version, workaround, or detection method.

Two flaws with different risks

NVD published two vulnerabilities on 2026-12-02 affecting @libp2p/gossipsub, the libp2p gossip messaging module used in Node.js. Both records cover every release through 17.2.3. Neither record names a fixed version, a workaround, or detection steps.

Higher severity: unbounded metrics growth

CVE-2026-142215 is rated HIGH (CVSS 8.2). When metrics are enabled, remote peers can send messages with arbitrary topic strings. Each distinct topic creates a labelled time series that is never removed, and this happens before message validation. According to the record, an attacker can use an unbounded set of distinct topics to exhaust the memory of the Node.js process.

Medium severity: prototype pollution in PeerScore

CVE-2026-142214 is rated MEDIUM (CVSS 6.3). It affects PeerScore, the component that tracks peer behaviour. Gossipsub peers that send messages on a topic named proto can modify Object.prototype. The record says this can set inherited invalidMessageDeliveries or firstMessageDeliveries properties to NaN across the affected Node.js process. The record notes that the messages can be either invalid or valid, so the trigger is not limited to malformed traffic.

What administrators should do

The sources do not state a patched release. Administrators should first find installations of @libp2p/gossipsub at version 17.2.3 or earlier. Nodes that accept gossipsub traffic from peers they do not control, and that have metrics enabled, are the cases the first record describes. The records give no workaround, so any mitigation has to come from the project or the vendor.

What to do

  1. Identify @libp2p/gossipsub installations at version 17.2.3 or earlier.
  2. Check which of those nodes have metrics enabled and accept traffic from untrusted peers.
  3. Apply the upstream fixed release once one is published; the records do not name one.

Our article about all 2 vulnerabilities, written with AI assistance from the official records listed below. Each CVE's page has its details.

The 2 vulnerabilities

  • CVE-2026-142215 8.2 @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 messa…
  • CVE-2026-142214 6.3 @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 o…

Frequently asked questions

How many libp2p @libp2p/gossipsub vulnerabilities were published on December 2, 2026?

2 vulnerabilities: 1 high, 1 medium, with CVSS scores up to 8.2.

Are any of them being exploited?

None of them is in CISA's Known Exploited Vulnerabilities catalog yet.

Which one should be fixed first?

CVE-2026-142215 (CVSS 8.2): @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 metri…

Original records