# CVE-2026-119793: libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-11-17 · Modified: 2026-11-18
- Aliases: GHSA-x2vm-cf3p-m2w8
- Record: https://cvemate.com/vulnerability/CVE-2026-119793 · JSON: https://cvemate.com/vulnerability/CVE-2026-119793/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.623%, percentile 51.316%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- @libp2p gossipsub: \< 17.0.0
- libp2p js-libp2p: \< 3.3.9
- @libp2p gossipsub (Npm): \< 17.0.0

## References

- <https://github.com/libp2p/js-libp2p/security/advisories/GHSA-x2vm-cf3p-m2w8>
- <https://github.com/libp2p/js-libp2p/pull/3593>
- <https://github.com/libp2p/js-libp2p/commit/d5534174d8b7d23ac1bd45a7e738664fbfb0cf4c>
- <https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v17.0.0>
- <https://github.com/libp2p/js-libp2p>

---

Data as of 2026-12-05T07:42:30.137Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
