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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-17T19:10:59.490Z
- Modified: 2026-11-18T17:17:29.417Z
- Also known as: GHSA-x2vm-cf3p-m2w8
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- libp2p js-libp2p: < 3.3.9
- @libp2p gossipsub: < 17.0.0
- @libp2p/gossipsub (npm): before 17.0.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

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

## Sources

- CVE List: [CVE-2026-119793](https://www.cve.org/CVERecord?id=CVE-2026-119793), CVE Terms of Use, modified 2026-11-18
- GitHub Advisory Database: [GHSA-x2vm-cf3p-m2w8](https://github.com/advisories/GHSA-x2vm-cf3p-m2w8), CC-BY-4.0, modified 2026-11-17
- NVD: [CVE-2026-119793](https://nvd.nist.gov/vuln/detail/CVE-2026-119793), Public domain, modified 2026-11-18

---

Page: https://cve.day/CVE-2026-119793 · Whole record: https://cve.day/CVE-2026-119793.json · Rebuilt by cve.day 2026-11-25T22:59:51.016Z
