CVE-2026-119793: libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config
Published 2026-11-17 · Updated 2026-11-17 · Also known as GHSA-x2vm-cf3p-m2w8
Summary
The libp2p gossipsub implementation lacks default caps on topic subscriptions, allowing remote peers to trigger unbounded memory growth via flooding. All users of @libp2p/gossipsub prior to version 17.0.0 should update immediately to prevent potential out-of-memory denial-of-service attacks.
Who is affected
Affected deployments include any node running default gossipsub configurations where topic allow-listing is not strictly enforced. An attacker can exploit this by sending high volumes of subscription RPCs from a single connection, as the system does not cap topic map size, peer subscription limits, or topic-string lengths, eventually leading to process crashes.
Exploitability
The vulnerability is rated as High (CVSS 7.5) due to its remote reachability and low complexity, requiring no special privileges or user interaction. With an EPSS score of 0.006, exploitation is possible in the wild, though it is not currently listed as a CISA Known Exploited Vulnerability.
Remediation
- Upgrade @libp2p/gossipsub to version 17.0.0 or later.
- Implement explicit topic allow-listing if upgrading is not immediately possible.
How to check your project
- Check package.json or lock files for dependencies on @libp2p/gossipsub versions below 17.0.0.
- Inspect application configuration files to confirm if allowedTopics is defined and restrictive rather than relying on default settings.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | @libp2p/gossipsub |
>= 0, < 17.0.0 | 17.0.0 | npm install @libp2p/[email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | High |
FAQ
What happens if a node is flooded with subscriptions?
The gossipsub topic map grows monotonically without bound, consuming system memory until the process hits an Out-Of-Memory (OOM) state and crashes.
Does peer scoring protect against this attack?
No. In the affected versions, the peer-scoring components do not include a subscription-volume metric, meaning attackers do not get greylisted or penalized for flooding subscriptions.
Is this vulnerability being actively exploited?
There is no evidence of active exploitation documented in the CISA Known Exploited Vulnerabilities catalog.
Original advisory description
References
- WEB https://github.com/libp2p/js-libp2p/security/advisories/GHSA-x2vm-cf3p-m2w8
- WEB https://github.com/libp2p/js-libp2p/pull/3593
- WEB https://github.com/libp2p/js-libp2p/commit/d5534174d8b7d23ac1bd45a7e738664fbfb0cf4c
- PACKAGE https://github.com/libp2p/js-libp2p
- WEB https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v17.0.0
Source records: GHSA-x2vm-cf3p-m2w8 (OSV.dev) · EPSS by FIRST, 2026-11-21.