Live threats

All CVEs / Protocol

CVE-2022-23487Protocol Libp2p

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
0.9%
probability of exploitation in 30 days · percentile 56
Auth required
No
Published
Dec 7, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-770
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Libp2p.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm libp2p < 0.38.0 0.38.0 npm install libp2p@0.38.0

Per OSV / GitHub Advisories (GHSA-f44q-634c-jvwv). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
protocollibp2p< 0.38.0

Official sources

References

Links published by the sources. Open them with care.