Description
libp2p is a JavaScript implementation of the libp2p networking stack. Prior to 17.0.0, the @libp2p/gossipsub default configuration allows a connected remote peer to submit unsigned subscription RPC metadata for arbitrarily many distinct topic strings. handleReceivedSubscription in packages/gossipsub/src/gossipsub.ts creates a persistent topics-map entry for each accepted topic, while allowedTopics is unset by default, decodeRpc maxSubscriptions limits only one RPC rather than aggregate topic bytes, and peer scoring has no subscription-volume penalty. A single peer can therefore grow the topics map and committed heap toward out-of-memory conditions, and disconnecting additionally causes removePeer to scan all accumulated topic entries. This issue is fixed in version 17.0.0.
Published: 2026-11-17
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-x2vm-cf3p-m2w8 libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config
History

Wed, 18 Nov 2026 21:30:00 +0000

Type Values Removed Values Added
First Time appeared Libp2p
Libp2p gossipsub
Libp2p libp2p
Vendors & Products Libp2p
Libp2p gossipsub
Libp2p libp2p

Tue, 17 Nov 2026 19:15:00 +0000

Type Values Removed Values Added
Description libp2p is a JavaScript implementation of the libp2p networking stack. Prior to 17.0.0, the @libp2p/gossipsub default configuration allows a connected remote peer to submit unsigned subscription RPC metadata for arbitrarily many distinct topic strings. handleReceivedSubscription in packages/gossipsub/src/gossipsub.ts creates a persistent topics-map entry for each accepted topic, while allowedTopics is unset by default, decodeRpc maxSubscriptions limits only one RPC rather than aggregate topic bytes, and peer scoring has no subscription-volume penalty. A single peer can therefore grow the topics map and committed heap toward out-of-memory conditions, and disconnecting additionally causes removePeer to scan all accumulated topic entries. This issue is fixed in version 17.0.0.
Title libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config
Weaknesses CWE-400
CWE-770
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-11-18T16:39:03.392Z

Reserved: 2026-10-30T16:28:37.899Z

Link: CVE-2026-119793

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-17T19:17:46.530

Modified: 2026-11-18T17:17:29.417

Link: CVE-2026-119793

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-18T21:07:36Z

Weaknesses