{"id":"CVE-2026-119793","published":"2026-11-17T19:10:59Z","modified":"2026-11-18T16:39:03Z","title":"libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config","vendor":"libp2p","product":"js-libp2p","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00623,"percentile":0.50803,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/libp2p/js-libp2p/security/advisories/GHSA-x2vm-cf3p-m2w8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/libp2p/js-libp2p/pull/3593","tags":["x_refsource_MISC"]},{"url":"https://github.com/libp2p/js-libp2p/commit/d5534174d8b7d23ac1bd45a7e738664fbfb0cf4c","tags":["x_refsource_MISC"]},{"url":"https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v17.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":10.16},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"libp2p","affectedVersions":[{"vendor":"libp2p","product":"js-libp2p","versions":["< 3.3.9"]},{"vendor":"@libp2p","product":"gossipsub","versions":["< 17.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-18T16:38:11.478666Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@libp2p/gossipsub","vulnerableRanges":["<17.0.0"],"patched":["17.0.0"],"from":["GHSA-x2vm-cf3p-m2w8"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-127198","exploited":false,"provenance":"source"}}