npm
CVE-2026-119793
libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config
- Severity
- High 7.5
- Published
- 17 Nov 2026
- Last changed
- 17 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 17.0.0
- Exploit chance
- 0.6% in the next 30 daysHigher than 50% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-x2vm-cf3p-m2w8
- Sources
- OSV.dev and GitHub
Description
A single gossipsub peer can grow a node's topics map without bound by flooding subscription RPCs, because the default configuration has no global, per-peer, or topic-length cap and peer scoring does not penalise subscription volume. The peer is never greylisted, so the growth continues toward OOM.
handleReceivedSubscription (packages/gossipsub/src/gossipsub.ts:1028, line 1036) runs this.topics.set(topic, new Set()) for every distinct topic string:
The only topical gate (gossipsub.ts:981, if (this.allowedTopics != null && !this.allowedTopics.has(topic)) return) is skipped when allowedTopics is null — the default. Subscriptions are unsigned RPC metadata (no signature needed); decodeRpc's per-RPC limit caps count (maxSubscriptions = 5000) but not topic-string length or aggregate size; and the peer-scoring components P1–P7 have no subscription-volume term, so the attacker's score stays at 0 (above the graylistThreshold of −80) and acceptFrom keeps returning true.
Affected software
| Software | Affected versions |
|---|---|
@libp2p/gossipsubnpm · osv:npm:@libp2p/gossipsub |
|
About @libp2p/gossipsub
- Weekly downloads (npm)
- 26,011npm, 24 Nov 2026
This is the only vulnerability in @libp2p/gossipsub in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-119793
- GitHub Advisory Database https://github.com/advisories/GHSA-x2vm-cf3p-m2w8