Skip to main content

libp2p gossipsub CVE-2026-119793

| EUVDEUVD-2026-127198 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-11-17 security-advisories@github.com GHSA-x2vm-cf3p-m2w8
7.5
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Open single libp2p connection to node
  2. Delivery
    Send flood of unsigned subscription RPCs
  3. Exploit
    Each distinct topic adds permanent map entry
  4. Execution
    Topics map grows unbounded, heap commits
  5. Impact
    Node reaches out-of-memory, denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires that the victim node runs @libp2p/gossipsub (< 17.0.0) in its default configuration with allowedTopics left unset - the advisory's control run shows that setting allowedTopics to a fixed list rejects the flood at the topical gate and fully prevents the growth, so a deny-by-default topic allowlist is the key limiting factor. The attacker needs only one established libp2p connection and no authentication (subscriptions are unsigned RPC metadata, PR:N), no user interaction, and no special privilege; the only other gate, decodeRpc's maxSubscriptions=5000 per-RPC cap, does not bound aggregate topic bytes or count. Exploitation effectiveness scales with the victim's available memory, and the node is never rate-limited or greylisted because peer scoring has no subscription-volume penalty.

Impact

This is a genuine, well-substantiated availability risk rather than an inflated high-CVSS score. The CVSS vector (AV:N/AC:L/PR:N/UI:N, C:N/I:N/A:H) is internally consistent with the mechanism: a single connected remote peer sends unsigned subscription RPC metadata - no authentication, no user interaction, low complexity - to drive the victim's gossipsub topics map toward out-of-memory (pure availability impact, no confidentiality or integrity). The GHSA root-cause analysis confirms each vulnerable gate: allowedTopics is unset by default, decodeRpc's maxSubscriptions (5000) limits only per-RPC count rather than aggregate topic bytes, and peer scoring (P1-P7) has no subscription-volume term, so the attacker's score stays at 0 and is never greylisted. A detailed PoC is described (one peer grew the victim to ~1.1M topic entries, RSS +~900MB), but the input marks it 'reference only, not verified as working exploit code,' so a public PoC reference exists; it is not verified as working exploit code. No KEV listing and no EPSS score are provided, so there is no public evidence of active exploitation - consistent with the vendor-advisory origin (GitHub Security Lab) rather than observed in-the-wild abuse. The vuln.today Decision label is 'this_week,' indicating prompt but not emergency remediation. Net: a real, easily-triggered DoS against default deployments, meriting timely patching, but currently a theoretical/PoC-stage issue with no confirmed exploitation.

Exploit ScenarioDerived

An attacker establishes a single libp2p connection to a victim node running gossipsub in its default configuration and floods it with subscription RPC frames covering vast numbers of distinct, long topic strings. Each accepted topic creates a permanent topics-map entry with no global, per-peer, or topic-length cap, so committed heap grows monotonically toward OOM; disconnecting then triggers an O(N) removePeer sweep over every accumulated entry as a secondary CPU cost. A PoC reference exists but is not verified as working exploit code; the described reproduction reached ~1.1M entries and ~900MB RSS from one peer using 300 RPCs.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Denial of service in @libp2p/gossipsub before 17.0.0 allows a single remote, unauthenticated peer with one established libp2p connection to drive a victim node's internal topics map toward out-of-memory conditions by flooding subscription RPCs with arbitrarily many distinct topic strings. Because allowedTopics is unset in the default configuration, every accepted subscription creates a persistent map entry, the per-RPC maxSubscriptions limit of 5000 bounds only a single frame rather than aggregate bytes, and peer scoring has no subscription-volume penalty, so the attacker is never rate-limited or greylisted. Disconnecting additionally forces an O(N) sweep in removePeer over all accumulated entries. The issue is fixed in 17.0.0; a public PoC reference exists, but it is not verified as working exploit code, and no confirmed active exploitation (CISA KEV) has been reported.

RemediationAI

Vendor-released patch: upgrade @libp2p/gossipsub to 17.0.0 or later, as published in the gossipsub-v17.0.0 release (https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v17.0.0) and delivered by PR 3593 / commit d5534174d8b7d23ac1bd45a7e738664fbfb0cf4c. Confirm the resolved dependency version in your lockfile, since transitive js-libp2p installations may pin an older gossipsub. If an upgrade cannot be shipped immediately, set the allowedTopics option to a fixed, deny-by-default list of the topics your node actually needs: the vendor's control run shows the identical subscription flood being rejected at that gate with the topics map staying at zero entries, at the cost of dropping legitimate traffic on any topic not on the list (dynamic topic sets and open/permisionless networks do not fit this workaround). Note that decodeRpc's maxSubscriptions=5000 limit and peer scoring are not effective mitigations here, as neither bounds aggregate topic growth nor penalises subscription volume in the affected versions. After upgrading, the new maxTopicBytesPerPeer option (default 1 MiB, roughly 1000 topics per peer) can be tuned, but the vendor warns that keeping it far above legitimate peers' needs is important because a peer that reaches the budget silently stops receiving messages on further topics.

Affected VersionsENISA

js-libp2p < 3.3.9
gossipsub < 17.0.0

Affected Packages

npm @libp2p/gossipsub fix: 17.0.0
euvd gossipsub fix: 17.0.0
euvd js_libp2p fix: 3.3.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libp2p is a modular peer-to-peer networking stack, and gossipsub is its pubsub protocol implementation; in js-libp2p the component ships as the npm package @libp2p/gossipsub. Subscriptions are transmitted as unsigned RPC metadata, so a peer can announce interest in arbitrary topic strings without any signature or authentication step. The flaw is CWE-400 (Uncontrolled Resource Consumption), with the vendor advisory also classifying it as CWE-770 (Allocation of Resources Without Limits or Throttling): handleReceivedSubscription in packages/gossipsub/src/gossipsub.ts calls this.topics.set(topic, new Set()) for every distinct topic it accepts, with no global cap, no per-peer cap and no topic-string length limit. The only topical gate is skipped when allowedTopics is null, which is the default, and decodeRpc's maxSubscriptions = 5000 constrains subscription count per RPC frame rather than the length of topic strings or their aggregate size across frames. The peer-scoring components P1-P7 contain no subscription-volume term, so an attacker's score stays at 0, above the graylistThreshold of −80, and acceptFrom keeps returning true. The upstream fix introduces a per-peer topic-byte budget (maxTopicBytesPerPeer, default 1 MiB) that charges each subscription its topic-string length plus a fixed GossipsubTopicEntryOverhead of 1024 bytes, and refunds the charge on unsubscribe, so the budget bounds roughly 1000 topics per peer; subscriptions beyond the budget are ignored rather than greylisting the peer.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Unauthenticated remote peer sends unsigned subscription RPCs over the network with no interaction (AV:N/AC:L/PR:N/UI:N); impact is memory-exhaustion DoS only (A:H, C/I:N).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Nov 17, 2026 - 20:18 EUVD
CVE Published
Nov 17, 2026 - 19:17 cve.org
HIGH 7.5

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 2 npm packages depend on @libp2p/gossipsub (1 direct, 1 indirect)

Ecosystem-wide dependent count for version 17.0.0.

Technical POC Analysis

CWE-400 (Uncontrolled Resource Consumption), with CWE-770 (Allocation of Resources Without Limits or Throttling) as the sub-class named in the advisory.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

A high-severity denial-of-service vulnerability in the @libp2p/gossipsub library (versions before 17.0.0) could allow a remote attacker to crash or severely degrade victim nodes by exhausting memory. This affects any organization relying on libp2p-based peer-to-peer systems, potentially disrupting critical services and causing operational downtime.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 49% exploitable
Prevalence
Medium
JavaScript libp2p/gossipsub, common in P2P/IPFS and blockchain apps, not ubiquitous
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy