CVE-2026-49866 libp2p: CPU DoS via oversized IHAVE and IWANT control message arrays
HighCVSS 7.5
EPSS 0.63%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| libp2p @libp2p/gossipsub(npm) | < 16.0.0 | 16.0.0 | Fixed |
| libp2p js-libp2p | = < 16.0.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| libp2p js-libp2p | = < 16.0.0 | No fix listed |
| libp2p @libp2p/gossipsub(npm) | < 16.0.0 | 16.0.0 |
References
- https://github.com/libp2p/js-libp2p/security/advisories/GHSA-cwc9-cp4j-mcvv vendor-advisory
- https://github.com/libp2p/js-libp2p/pull/3520 patch
- https://github.com/libp2p/js-libp2p/commit/773dd80ded24dbd6b19e675c89fd2f3b45f2d899 patch
- https://github.com/libp2p/js-libp2p/releases/tag/gossipsub-v16.0.0
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product