{
  "id": "CVE-2026-49866",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-49866",
  "published_at": "2026-07-08T20:47:09.051Z",
  "title": "libp2p: CPU DoS via oversized IHAVE and IWANT control message arrays",
  "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 libp2p networking stack. Prior to 16.0.0, @libp2p/gossipsub defaultDecodeRpcLimits set maxIhaveMessageIDs and maxIwantMessageIDs to Infinity, allowing oversized IHAVE and IWANT control message arrays in message/decodeRpc.ts and gossipsub.ts to synchronously iterate roughly 180,000 message IDs per 4 MB frame and block the Node.js event loop. This issue is fixed in version 16.0.0.",
  "cwe": "CWE-770",
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "libp2p",
        "product": "js-libp2p",
        "ranges": [
          "\u003c 16.0.0"
        ],
        "fixed_in": [
          "16.0.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade js-libp2p to 16.0.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/libp2p/js-libp2p/security/advisories/GHSA-cwc9-cp4j-mcvv"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/libp2p/js-libp2p/pull/3520"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/libp2p/js-libp2p/commit/773dd80ded24dbd6b19e675c89fd2f3b45f2d899"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v16.0.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
