CVE-2026-119793

GHSA-x2vm-cf3p-m2w8 · published 17 Nov 2026 · updated 18 Nov 2026

libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in @libp2p/gossipsub 17.0.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
libp2p<17.0.0, <3.3.9
npm: @libp2p/gossipsub<17.0.017.0.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-119793 severity on Zeptric[![CVE-2026-119793](https://zeptric.io/badge/cve/CVE-2026-119793.svg)](https://zeptric.io/cve/CVE-2026-119793)