CVE-2026-119793
libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config
- CVSS
- 7.5
- EPSS
- 0.62% (p51)
- Published
- 2026-11-17
- Age
- 19d old
- Modified
- 2026-11-18
- Product
- libp2p js-libp2p
- Aliases
- GHSA-x2vm-cf3p-m2w8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
Fixed in
17.0.0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| npm | @libp2p/gossipsub | < 17.0.0 | 17.0.0 |
| npm | @libp2p/gossipsub | >=0, <17.0.0 | 17.0.0 |
Sources
- NVD · first seen 19d ago · NVD terms of use
- OSV · first seen 19d ago · CC-BY 4.0
- GitHub Advisory Database · first seen 19d ago · CC-BY 4.0
- CVE List · first seen 19d ago · CVE Terms of Use
References
- https://github.com/libp2p/js-libp2p/security/advisories/GHSA-x2vm-cf3p-m2w8 x_refsource_CONFIRM
- https://github.com/libp2p/js-libp2p/pull/3593 x_refsource_MISC
- https://github.com/libp2p/js-libp2p/commit/d5534174d8b7d23ac1bd45a7e738664fbfb0cf4c x_refsource_MISC
- https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v17.0.0 x_refsource_MISC
- https://github.com/advisories/GHSA-x2vm-cf3p-m2w8 other
- https://github.com/libp2p/js-libp2p package
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119793.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-119793 advisory