CVE-2026-119793
Description
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.
Weakness
- CWE-400: Uncontrolled Resource Consumption
- CWE-770: Allocation of Resources Without Limits or Throttling
Timeline
- 2026-11-17Published by the CNA19:10 UTC
- 2026-11-17GitHub advisory published (GHSA-x2vm-cf3p-m2w8)same day
- 2026-11-17Published in NVD19:17 UTC · 6 minutes after the CNA
Exploit and advisory records
GitHub advisory GHSA-x2vm-cf3p-m2w8, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm @libp2p/gossipsub | before 17.0.0 | 17.0.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| @libp2p gossipsub | ||
| libp2p js-libp2p |
References
- https://github.com/libp2p/js-libp2p/commit/d5534174d8b7d23ac1bd45a7e738664fbfb0cf4c
- https://github.com/libp2p/js-libp2p/pull/3593
- https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v17.0.0
- https://github.com/libp2p/js-libp2p/security/advisories/GHSA-x2vm-cf3p-m2w8
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-119793'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-119793'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-119793'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-119793'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).