{
  "id": "CVE-2026-119793",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-119793",
  "published_at": "2026-11-17T19:10:59.49Z",
  "title": "libp2p: gossipsub creates a permanent topics-map entry per distinct subscription with no cap in the default config",
  "vendor": "libp2p",
  "product": "js-libp2p",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-400",
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "libp2p",
        "product": "js-libp2p",
        "ranges": [
          "\u003c 3.3.9"
        ],
        "fixed_in": [
          "3.3.9"
        ]
      },
      {
        "vendor": "@libp2p",
        "product": "gossipsub",
        "ranges": [
          "\u003c 17.0.0"
        ],
        "fixed_in": [
          "17.0.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade js-libp2p to 3.3.9 or later.",
      "Upgrade gossipsub to 17.0.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/libp2p/js-libp2p/security/advisories/GHSA-x2vm-cf3p-m2w8"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/libp2p/js-libp2p/pull/3593"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/libp2p/js-libp2p/commit/d5534174d8b7d23ac1bd45a7e738664fbfb0cf4c"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v17.0.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
