CVE-2026-119793
HIGH 7.5CVSS 3.1libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config
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
- 17 Nov 2026
- Last modified
- 18 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-400CWE-770
- Also known as
- GHSA-x2vm-cf3p-m2w8
- Sources
- NVDJSONOSV GHSA-x2vm-cf3p-m2w8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | @libp2p/gossipsub | < 17.0.0 | 17.0.0 |
References
- https://github.com/libp2p/js-libp2p/commit/d5534174d8b7d23ac1bd45a7e738664fbfb0cf4c · WEB
- https://github.com/libp2p/js-libp2p/pull/3593 · WEB
- https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v17.0.0 · WEB
- https://github.com/libp2p/js-libp2p/security/advisories/GHSA-x2vm-cf3p-m2w8 · WEB
- https://github.com/libp2p/js-libp2p · PACKAGE
History
- 25 Nov 2026 21:23 UTC · NVD: first stored (published 17 Nov 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 Nov 2026)