{"schemaVersion":4,"id":"CVE-2026-119793","aliases":["GHSA-x2vm-cf3p-m2w8"],"status":"published","duplicateOf":null,"title":"libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config","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.","dates":{"published":"2026-11-17T19:10:59.490Z","modified":"2026-11-18T16:39:03.392Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true}]},"epss":{"probability":0.00623,"percentile":0.51316,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-18T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00623,"percentile":0.51316}],"last30":[{"date":"2026-11-18T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00623,"percentile":0.51316}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling","description":"The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/770.html"}],"affected":[{"vendor":"@libp2p","product":"gossipsub","name":"gossipsub","label":"gossipsub","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 17.0.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"17.0.0","endInclusive":false}}],"versionsText":"< 17.0.0","eol":null,"hubHref":"/vendor/libp2p/gossipsub"},{"vendor":"libp2p","product":"js-libp2p","name":"js-libp2p","label":"js-libp2p","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.3.9","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.3.9","endInclusive":false}}],"versionsText":"< 3.3.9","eol":null,"hubHref":"/vendor/libp2p/js-libp2p"},{"vendor":"@libp2p","product":"gossipsub","name":"@libp2p/gossipsub","label":"gossipsub","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@libp2p/gossipsub","purlType":"npm","versions":[{"text":"< 17.0.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"17.0.0","endInclusive":false}}],"versionsText":"< 17.0.0","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/libp2p/js-libp2p/security/advisories/GHSA-x2vm-cf3p-m2w8","label":"github.com/libp2p/js-libp2p/security/advisories/GHSA-x2vm-cf3p-m2w8","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/libp2p/js-libp2p/pull/3593","label":"github.com/libp2p/js-libp2p/pull/3593","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/libp2p/js-libp2p/commit/d5534174d8b7d23ac1bd45a7e738664fbfb0cf4c","label":"github.com/libp2p/js-libp2p/commit/d5534174d8b7d23ac1bd45a7e738664fbfb0cf4c","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v17.0.0","label":"github.com/libp2p/js-libp2p/releases/tag/gossipsub-v17.0.0","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/libp2p/js-libp2p","label":"github.com/libp2p/js-libp2p","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-17T19:10:59.490Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-18T16:39:03.392Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)","nextStep":"Check applicability and the vendor advisory: no fix release is recorded here","rank":[0,0,0,0,1,75],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00623,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-18T16:39:03.392Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-18T16:39:03.392Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"cvss","source":"osv_npm","date":"2026-11-18T16:39:03.392Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-18T16:38:11.478Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00623,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T07:02:00.704Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T07:02:01.187Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T07:02:01.389Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T07:01:05.155Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T07:01:59.185Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T07:01:58.234Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T07:49:21.106Z","stale":false,"partial":false}}