Allocation of Resources Without Limits or Throttling Affecting @libp2p/gossipsub package, versions <17.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.63% (45th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-LIBP2PGOSSIPSUB-22744137
  • published23 Nov 2026
  • disclosed17 Nov 2026
  • creditX1AOxiang

Introduced: 17 Nov 2026

NewCVE-2026-119793  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade @libp2p/gossipsub to version 17.0.0 or higher.

Overview

@libp2p/gossipsub is an A typescript implementation of gossipsub

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via handleReceivedSubscription in packages/gossipsub/src/gossipsub.ts, which creates a persistent topics-map entry for every distinct topic string received from a remote peer. Because allowedTopics is null by default, decodeRpc's maxSubscriptions limit caps only a single RPC rather than aggregate topic bytes, and peer scoring has no subscription-volume penalty, a single connected peer can flood unsigned subscription RPCs containing arbitrarily many distinct topic strings, growing the topics map and committed heap toward out-of-memory conditions. On disconnect, removePeer performs an O(N) scan over all accumulated topic entries, adding a secondary CPU cost while the heap remains committed.

CVSS Base Scores

version 4.0
version 3.1