# CVE-2022-23487: libp2p denial of service vulnerability from lack of resource management

- 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.75%, higher than 56% of CVEs (2026-12-02)
- Published: 2022-12-07T20:05:35.319Z
- Modified: 2026-06-17T04:30:13.350Z
- Also known as: GHSA-f44q-634c-jvwv
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

js-libp2p is the official javascript Implementation of libp2p networking stack. Versions older than `v0.38.0` of js-libp2p are vulnerable to targeted resource exhaustion attacks. These attacks target libp2p’s connection, stream, peer, and memory management. An attacker can cause the allocation of large amounts of memory, ultimately leading to the process getting killed by the host’s operating system. While a connection manager tasked with keeping the number of connections within manageable limits has been part of js-libp2p, this component was designed to handle the regular churn of peers, not a targeted resource exhaustion attack. Users are advised to update their js-libp2p dependency to `v0.38.0` or greater. There are no known workarounds for this vulnerability.

(As written by CVE List.)

## Affected

- libp2p js-libp2p: < 0.38.0
- libp2p (npm): before 0.38.0
- protocol libp2p: before 0.38.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`
- NVD: 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-f44q-634c-jvwv> (mitigation, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-23487> (advisory)
- <https://github.com/libp2p/js-libp2p> (package)

## Sources

- CVE List: [CVE-2022-23487](https://www.cve.org/CVERecord?id=CVE-2022-23487), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-f44q-634c-jvwv](https://github.com/advisories/GHSA-f44q-634c-jvwv), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-23487](https://nvd.nist.gov/vuln/detail/CVE-2022-23487), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-23487 · Whole record: https://cve.day/CVE-2022-23487.json · Rebuilt by cve.day 2026-11-25T22:58:17.295Z
