CVE-2026-119793
published high CVSS 3.1 · 7.5libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| libp2p | js-libp2p | < 3.3.9 (affected) | GitHub_M · cna |
| @libp2p | gossipsub | < 17.0.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-400 CWE-400: Uncontrolled Resource Consumption
- CWE-770 CWE-770: Allocation of Resources Without Limits or Throttling
References
4Provider assertions
2GitHub_M · cna
libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c503c032835cba40de583a00bcf3d2a10e0562c5d784794cbb3f8e0e2059369f
- Ingested
- 18 Nov 2026, 16:41:10 UTC
- Source record
- Official CVE record