Read the docs

Unbounded topic subscriptions in libp2p gossipsub exhaust memory

Priority HIGH 72CWE-400Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.

Summary

The @libp2p/gossipsub package before 17.0.0 and js-libp2p before 3.3.9 have a resource consumption flaw (CWE-770). The default configuration accepts unsigned subscription messages for arbitrarily many distinct topic strings, and each accepted topic creates a permanent entry in the topics map. A connected remote peer can grow memory use toward out-of-memory conditions, and disconnecting causes a scan of all accumulated topic entries.

Written with Claude Haiku 5.5 from the sources below · 2026-11-18

Description from the CNA

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00623 51st percentileScored 2026-12-04
Fix Fixed js-libp2p (libp2p): 3.3.9gossipsub (@libp2p): 17.0.0+1 more product

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
libp2pjs-libp2pbefore 3.3.93.3.9Patch availableCNA
libp2pgossipsubbefore 17.0.017.0.0Patch availableCNA
—@libp2p/gossipsub (npm)before 17.0.017.0.0Patch availableGHSA-x2vm-cf3p-m2w8
  • js-libp2p Vendorlibp2p Affected before 3.3.9 Fixed in 3.3.9 Patch available CNA
  • gossipsub Vendorlibp2p Affected before 17.0.0 Fixed in 17.0.0 Patch available CNA
  • @libp2p/gossipsub (npm) Vendor— Affected before 17.0.0 Fixed in 17.0.0 Patch available GHSA-x2vm-cf3p-m2w8

Remediation

Upgrade @libp2p/gossipsub to version 17.0.0 and js-libp2p to version 3.3.9.

Written with Claude Haiku 5.5 from the sources below · 2026-11-18

  • Fix · CNA js-libp2p (libp2p) Fixed in 3.3.9
  • Fix · CNA gossipsub (@libp2p) Fixed in 17.0.0
  • Fix · GHSA-x2vm-cf3p-m2w8 @libp2p/gossipsub (npm) Fixed in 17.0.0 Advisory →

Timeline

  1. 2026-11-17 Threatist record created from CVE-2026-119793
  2. 2026-11-17 Alias added: GHSA-x2vm-cf3p-m2w8
  3. 2026-11-17 Fix available: npm/@libp2p/[email protected] · GHSA-x2vm-cf3p-m2w8
  4. 2026-11-17 CVSS score added · GHSA-x2vm-cf3p-m2w8
  5. 2026-11-17 Weakness changed · GHSA-x2vm-cf3p-m2w8
  6. 2026-11-17 5 new references · GHSA-x2vm-cf3p-m2w8
  7. 2026-11-18 CISA SSVC decision points changed
  8. 2026-11-25 EPSS moved to the below the 50th percentile
  9. 2026-12-01 EPSS moved to the 50th–90th percentile

References

  • TI-2026-60386 libp2p-rendezvous through 0.17.1 Denial of Service via Unbounded Registration TTL in Discovery Responses CVSS 4.0HIGH 8.7
  • TI-2026-58865 libp2p: PeerStore accepts attacker-signed PeerRecords for a victim peer ID and stores certified attacker addresses CVSS 3.1HIGH 8.2
  • TI-2026-44102 libp2p-quic: Remote panic via certificate expiry race during QUIC handshake CVSS 4.0HIGH 8.2
  • TI-2026-27587 libp2p-rust has unbounded rendezvous DISCOVER cookies enable remote memory exhaustion CVSS 3.1HIGH 8.2
  • TI-2026-92655 ASN.1 DER decoder in libp2p stalls the Node event loop before authentication CVSS 3.1HIGH 7.5
  • TI-2026-58864 libp2p: Gossipsub StrictSign accepts attacker-signed messages as a victim RSA peer ID CVSS 3.1HIGH 7.5
See all 31 →

Sources