CVE-2026-119793
### Summary 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. ### Details `handleReceivedSubscription` (`packages/gossipsub/src/gossipsub.ts:1028`, line 1036) runs `this.topics.set(topic, new Set())` for every distinct topic string: ```ts private handleReceivedSubscription (from, topic, subscribe) { let topicSet = this.topics.get(topic) if (subscribe) { if (topicSet == null) { topicSet = new Set() this.topics.set(topic, topicSet) // no global cap, no per-peer cap } topicSet.add(from.toString()) } } ``` 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. Verified on js-libp2p commit `a04f5e0`, where `@libp2p/gossipsub` reads `16.0.4`. ### PoC Full PoC attached (`gossipsub-topics-unbounded-growth-poc.tar.gz`). Build the js-libp2p monorepo at the affected version (`npm install --ignore-scripts && npm run build`), extract the package inside the monorepo root (sibling of `packages/`), then `cd gossipsub-topics-unbounded-growth-poc && node attack.mjs`. Expected (default config): ``` [*] sending 300 RPC frames x 4000 unique ~190-byte topic subscriptions (1,200,000 topics total) [*] progress: 88% sent | victim topics=1,032,000 rss=740MB peers=1 [*] victim quiesced: topics=~1,100,000 rss=~870MB peers=1 [!] Vulnerabi
Properties
- Summary
- libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config
- Severity
- high
- Nvd fetched at
- 2026-11-19T03:31:17.617109+00:00
- Epss score
- 0.0063
- Cvss score
- 7.5
- Cvss severity
- HIGH
- Retrieved at
- 2026-11-19T03:33:39+00:00
- Ghsa published
- 2026-11-17T21:06:20Z
- Source url
- https://github.com/advisories/GHSA-x2vm-cf3p-m2w8
- Ghsa updated
- 2026-11-17T21:06:20Z
- Ghsa id
- GHSA-x2vm-cf3p-m2w8
- Last source
- FIRST EPSS
- Score
- 7.5
- Cvss version
- 3.1
- Cve id
- CVE-2026-119793
- Cvss vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- First seen by Signal
- 2026-11-17T22:56:03+00:00
- Name
- CVE-2026-119793
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Related Entities (4)
HAS_WEAKNESS (2)
AFFECTS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph