Live threats

All CVEs / libp2p

CVE-2026-110789libp2p js-libp2p

High 7.5 No auth needed

Priority
65
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Nov 17, 2026
Updated
Nov 19, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-130, CWE-400
SSVC (CISA)
Exploitation: proof of concept · 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

libp2p is a JavaScript implementation of the libp2p networking stack. Prior to 5.1.22, the @libp2p/crypto code reached by the default Identify service accepts a remote peer’s crafted publicKey before peer-id or signature verification and passes it through publicKeyFromProtobuf to the ASN.1 DER decoder. readLength in packages/crypto/src/keys/rsa/der.ts accepts long-form element lengths larger than the remaining buffer, causing readInteger and related readers to loop synchronously over an attacker-claimed length from a very small key blob. Because decoding occurs in one event-loop tick before the remotePeer equality check in packages/protocol-identify/src/identify.ts, the Identify timeout cannot interrupt it, allowing repeated unauthenticated connections to stall all timers and peers and transiently exhaust memory. This issue is fixed in version 5.1.22.

Original NVD text.

What to do

  1. Apply the vendor's security update for js-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/crypto < 5.1.22 5.1.22 npm install @libp2p/crypto@5.1.22

Per OSV / GitHub Advisories (GHSA-rvfr-cqwq-rc4j). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.