CVE-2026-119793
High 7.5No known exploitationFix availablelibp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config
Vendor advisory: GHSA-x2vm-cf3p-m2w8
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 51% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-400, CWE-770
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| @libp2p | gossipsub | < 17.0.0 | Not documented | CVE Program |
| libp2p | js-libp2p | < 3.3.9 | Not documented | CVE Program |
| npm | @libp2p/gossipsub | all versions before 17.0.0 | 17.0.0 | GitHub Advisory Database |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- GitHub Advisory GHSA-x2vm-cf3p-m2w8 (opens in a new tab)github-advisory
- https://github.com/libp2p/js-libp2p/commit/d5534174d8b7d23ac1bd45a7e738664fbfb0cf4c (opens in a new tab)x_refsource_misc
- https://github.com/libp2p/js-libp2p/pull/3593 (opens in a new tab)x_refsource_misc
- https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v17.0.0 (opens in a new tab)x_refsource_misc
- https://github.com/libp2p/js-libp2p/security/advisories/GHSA-x2vm-cf3p-m2w8 (opens in a new tab)x_refsource_confirm