{"id":"CVE-2026-49866","published":"2026-07-08T20:47:09Z","modified":"2026-07-09T14:40:44Z","title":"libp2p: CPU DoS via oversized IHAVE and IWANT control message arrays","vendor":"libp2p","product":"js-libp2p","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0063,"percentile":0.44603,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/libp2p/js-libp2p/security/advisories/GHSA-cwc9-cp4j-mcvv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/libp2p/js-libp2p/pull/3520","tags":["x_refsource_MISC"]},{"url":"https://github.com/libp2p/js-libp2p/commit/773dd80ded24dbd6b19e675c89fd2f3b45f2d899","tags":["x_refsource_MISC"]},{"url":"https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v16.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":8.92},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"libp2p","affectedVersions":[{"vendor":"libp2p","product":"js-libp2p","versions":["< 16.0.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-09T14:37:59.412018Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@libp2p/gossipsub","vulnerableRanges":["<16.0.0"],"patched":["16.0.0"],"from":["GHSA-cwc9-cp4j-mcvv"],"provenance":"source"}],"summary":{"text":"The js-libp2p networking stack's @libp2p/gossipsub component has a flaw where, before version 16.0.0, its default decode limits left the maximum counts for IHAVE and IWANT message IDs unbounded, so oversized control message arrays are iterated synchronously and can block the Node.js event loop. A remote attacker with network access can send a single crafted 4 MB frame, requiring no authentication or user interaction and only the default configuration, to stall the affected node's processing and cause denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:48Z"},"euvd":{"id":"EUVD-2026-42409","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-46679","published":"2026-06-10","fixed":"15.0.23","kev":false},{"cve":"CVE-2026-49866","published":"2026-07-08","fixed":"16.0.0","kev":false},{"cve":"CVE-2026-86038","published":"2026-09-17","fixed":"16.0.5","kev":false,"link":{"from":"CVE-2026-49866","to":"CVE-2026-86038","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@libp2p/gossipsub","fromFixed":"16.0.0","toFixed":"16.0.5","daysApart":71}]}},{"cve":"CVE-2026-119793","published":"2026-11-17","fixed":"17.0.0","kev":false}],"package":"npm:@libp2p/gossipsub"}}