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

- 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.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-07-08T20:47:09.051Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-cwc9-cp4j-mcvv
- Weaknesses: CWE-20, CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- libp2p js-libp2p: < 16.0.0
- @libp2p/gossipsub (npm): before 16.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-cwc9-cp4j-mcvv> (web)
- <https://github.com/libp2p/js-libp2p/pull/3520> (web)
- <https://github.com/libp2p/js-libp2p/commit/773dd80ded24dbd6b19e675c89fd2f3b45f2d899> (web)
- <https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v16.0.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49866> (advisory)
- <https://github.com/libp2p/js-libp2p> (package)

## Sources

- CVE List: [CVE-2026-49866](https://www.cve.org/CVERecord?id=CVE-2026-49866), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-cwc9-cp4j-mcvv](https://github.com/advisories/GHSA-cwc9-cp4j-mcvv), CC-BY-4.0, modified 2026-07-10
- NVD: [CVE-2026-49866](https://nvd.nist.gov/vuln/detail/CVE-2026-49866), Public domain, modified 2026-10-25

---

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