# CVE-2026-49866: libp2p: CPU DoS via oversized IHAVE and IWANT control message arrays

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 16.0.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-07-08 · Modified: 2026-07-09
- Aliases: GHSA-cwc9-cp4j-mcvv
- Record: https://cvemate.com/vulnerability/CVE-2026-49866 · JSON: https://cvemate.com/vulnerability/CVE-2026-49866/json

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

## 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.441%, percentile 40.041%, 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 js-libp2p: \< 16.0.0
- @libp2p gossipsub (Npm): \< 16.0.0

## References

- <https://github.com/libp2p/js-libp2p/security/advisories/GHSA-cwc9-cp4j-mcvv>
- <https://github.com/libp2p/js-libp2p/pull/3520>
- <https://github.com/libp2p/js-libp2p/commit/773dd80ded24dbd6b19e675c89fd2f3b45f2d899>
- <https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v16.0.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49866>
- <https://github.com/libp2p/js-libp2p>

---

Data as of 2026-12-05T08:24:43.748Z. 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
